tweaks: fuse two ifs into one

master
Benno Schulenberg 2018-03-25 19:52:57 +02:00
parent 415bf82690
commit 02719ec4bf
1 changed files with 3 additions and 3 deletions

View File

@ -3201,9 +3201,10 @@ void do_linter(void)
#ifdef ENABLE_MULTIBUFFER
struct stat lintfileinfo;
if (stat(curlint->filename, &lintfileinfo) != -1) {
if (openfile->current_stat->st_ino != lintfileinfo.st_ino) {
if (stat(curlint->filename, &lintfileinfo) != -1 &&
openfile->current_stat->st_ino != lintfileinfo.st_ino) {
openfilestruct *tmpof = openfile;
while (tmpof != openfile->next) {
if (tmpof->current_stat->st_ino == lintfileinfo.st_ino)
break;
@ -3260,7 +3261,6 @@ void do_linter(void)
}
} else
openfile = tmpof;
}
}
#endif /* ENABLE_MULTIBUFFER */