]> diplodocus.org Git - nmh/commitdiff
seq_setunseen.c: Flip if-condition so return moves from else block.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 9 Sep 2017 17:27:42 +0000 (18:27 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 9 Sep 2017 17:27:42 +0000 (18:27 +0100)
Then no need for else block after return.

sbr/seq_setunseen.c

index 49bfda4..acba9d9 100644 (file)
@@ -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;
     }
 
     /*