From: Ralph Corderoy Date: Sat, 9 Sep 2017 17:27:42 +0000 (+0100) Subject: seq_setunseen.c: Flip if-condition so return moves from else block. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/ab41b15145fe5d5155fc26b1300e648a0f12d290?ds=inline seq_setunseen.c: Flip if-condition so return moves from else block. Then no need for else block after return. --- diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index 49bfda4d..acba9d96 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -27,14 +27,12 @@ seq_setunseen (struct msgs *mp, int seen) * Get the list of sequences for Unseen-Sequence * and split them. */ - if ((cp = context_find (usequence))) { - dp = mh_xstrdup(cp); - if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { - free (dp); - return; - } - } else { - return; + if (!(cp = context_find (usequence))) + return; + dp = mh_xstrdup(cp); + if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { + free (dp); + return; } /*