tweaks: fuse two ifs into one
parent
415bf82690
commit
02719ec4bf
|
@ -3201,9 +3201,10 @@ void do_linter(void)
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
struct stat lintfileinfo;
|
struct stat lintfileinfo;
|
||||||
|
|
||||||
if (stat(curlint->filename, &lintfileinfo) != -1) {
|
if (stat(curlint->filename, &lintfileinfo) != -1 &&
|
||||||
if (openfile->current_stat->st_ino != lintfileinfo.st_ino) {
|
openfile->current_stat->st_ino != lintfileinfo.st_ino) {
|
||||||
openfilestruct *tmpof = openfile;
|
openfilestruct *tmpof = openfile;
|
||||||
|
|
||||||
while (tmpof != openfile->next) {
|
while (tmpof != openfile->next) {
|
||||||
if (tmpof->current_stat->st_ino == lintfileinfo.st_ino)
|
if (tmpof->current_stat->st_ino == lintfileinfo.st_ino)
|
||||||
break;
|
break;
|
||||||
|
@ -3261,7 +3262,6 @@ void do_linter(void)
|
||||||
} else
|
} else
|
||||||
openfile = tmpof;
|
openfile = tmpof;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif /* ENABLE_MULTIBUFFER */
|
#endif /* ENABLE_MULTIBUFFER */
|
||||||
|
|
||||||
if (tmplint != curlint) {
|
if (tmplint != curlint) {
|
||||||
|
|
Loading…
Reference in New Issue