tweaks: elide an unneeded, duplicate stat() for the FIFO check

master
Benno Schulenberg 2019-06-12 10:34:53 +02:00
parent 189de5ee78
commit e8e30e5197
1 changed files with 1 additions and 1 deletions

View File

@ -1815,7 +1815,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp,
}
}
if (stat(realname, &st) == 0 && S_ISFIFO(st.st_mode))
if (S_ISFIFO(st.st_mode))
statusbar(_("Writing to FIFO..."));
#endif /* !NANO_TINY */