From d5cde8ce1b902158b1e99ee97d8ae72999b4dc14 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 20 Oct 2016 23:29:19 +0100 Subject: [PATCH] Don't `else' after return. Simplify control flow. --- uip/new.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } -- 2.56.0