]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setunseen.c
new.c: Order two return statements to match comment.
[nmh] / sbr / seq_setunseen.c
index 16d028aa842e77c806eca0daaffb52bc7d2c8bb1..acba9d96853c9c7a99d714565a744883adba5f07 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * seq_setunseen.c -- add/delete all messages which have the SELECT_UNSEEN
+/* seq_setunseen.c -- add/delete all messages which have the SELECT_UNSEEN
  *                 -- bit set to/from the Unseen-Sequence
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
@@ -29,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;
     }
 
     /*