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

sbr/seq_setprev.c

index 022628b6a80335e43fc9d7f0c090094d7edb7006..5e5c43e9b6ce2a0c8b454017c0266daf34edebdb 100644 (file)
@@ -25,14 +25,12 @@ seq_setprev (struct msgs *mp)
      * Get the list of sequences for Previous-Sequence
      * and split them.
      */
-    if ((cp = context_find (psequence))) {
-       dp = mh_xstrdup(cp);
-       if (!(ap = brkstring (dp, " ", "\n")) || !*ap) {
-           free (dp);
-           return;
-       }
-    } else {
-       return;
+    if (!(cp = context_find(psequence)))
+        return;
+    dp = mh_xstrdup(cp);
+    if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
+        free(dp);
+        return;
     }
 
     /* Now add all SELECTED messages to each sequence */