tweaks: make a function do a check so its calls don't need to

This commit is contained in:
Benno Schulenberg
2019-10-09 18:58:30 +02:00
parent 557ad827f9
commit 785efc2087
4 changed files with 13 additions and 17 deletions

View File

@@ -1212,9 +1212,7 @@ void do_insertfile(void)
/* If the current mode of operation allows it, go insert a file. */
void do_insertfile_void(void)
{
if (ISSET(RESTRICTED))
show_restricted_warning();
else
if (!in_restricted_mode())
do_insertfile();
}