From: Ralph Corderoy Date: Thu, 20 Oct 2016 22:29:19 +0000 (+0100) Subject: Don't `else' after return. Simplify control flow. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d5cde8ce1b902158b1e99ee97d8ae72999b4dc14?ds=sidebyside Don't `else' after return. Simplify control flow. --- diff --git a/uip/new.c b/uip/new.c index dd173cc0..ff9c398b 100644 --- a/uip/new.c +++ b/uip/new.c @@ -342,14 +342,15 @@ doit(char *cur, char *folders, char *sequences[]) if (first == NULL) { /* No folders at all... */ return NULL; - } else if (first->n_next == NULL) { + } + if (first->n_next == NULL) { /* We have only one node; any desired messages in it? */ if (first->n_field == NULL) { return NULL; - } else { - return first; } - } else if (cur_node == NULL) { + return first; + } + if (cur_node == NULL) { /* Current folder is not listed in .folders, return first. */ return first; }