From: Ralph Corderoy Date: Thu, 25 May 2017 16:23:10 +0000 (+0100) Subject: uip/slocal.c: Tidy `verbose' logic in usr_file(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8d5ea13e4ebdda303739921ede230ac4f7ec7d7d?hp=4439993897592e11a34deedb103a93e8f9aab16a uip/slocal.c: Tidy `verbose' logic in usr_file(). Boolean was being tested three times instead of once after recent dead-code deletions. --- diff --git a/uip/slocal.c b/uip/slocal.c index f0c3aa07..da879acf 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -973,15 +973,9 @@ usr_file (int fd, char *mailbox, int mbx_style) { int md; - if (verbose) - verbose_printf ("delivering to file \"%s\"", mailbox); - - if (mbx_style == MBOX_FORMAT) { - if (verbose) - verbose_printf (" (mbox style)"); - } else { - if (verbose) - verbose_printf (" (mmdf style)"); + if (verbose) { + verbose_printf("delivering to file \"%s\" (%s style)", mailbox, + mbx_style == MBOX_FORMAT ? "mbox" : "mmdf"); } /* open and lock the file */