tweaks: elide unneeded intermediate assignments
parent
619044e83d
commit
1b902d6267
12
src/files.c
12
src/files.c
|
@ -2422,9 +2422,8 @@ int do_writeout(bool exiting)
|
||||||
if (exiting || !openfile->mark_set)
|
if (exiting || !openfile->mark_set)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
i = do_yesno_prompt(FALSE,
|
if (do_yesno_prompt(FALSE, _("Save file under "
|
||||||
_("Save file under DIFFERENT NAME? "));
|
"DIFFERENT NAME? ")) < 1)
|
||||||
if (i < 1)
|
|
||||||
continue;
|
continue;
|
||||||
maychange = TRUE;
|
maychange = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -2451,10 +2450,9 @@ int do_writeout(bool exiting)
|
||||||
(openfile->current_stat->st_mtime < st.st_mtime ||
|
(openfile->current_stat->st_mtime < st.st_mtime ||
|
||||||
openfile->current_stat->st_dev != st.st_dev ||
|
openfile->current_stat->st_dev != st.st_dev ||
|
||||||
openfile->current_stat->st_ino != st.st_ino)) {
|
openfile->current_stat->st_ino != st.st_ino)) {
|
||||||
i = do_yesno_prompt(FALSE,
|
|
||||||
_("File was modified since you opened it;"
|
if (do_yesno_prompt(FALSE, _("File was modified since "
|
||||||
" continue saving? "));
|
"you opened it; continue saving? ")) < 1)
|
||||||
if (i == 0 || i == -1)
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue