From 8d5ea13e4ebdda303739921ede230ac4f7ec7d7d Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 25 May 2017 17:23:10 +0100 Subject: [PATCH] uip/slocal.c: Tidy `verbose' logic in usr_file(). Boolean was being tested three times instead of once after recent dead-code deletions. --- uip/slocal.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 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 */ -- 2.56.0