]> diplodocus.org Git - nmh/commitdiff
Don't need to `else' after done() at end of then-block.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 23 Aug 2017 21:11:49 +0000 (22:11 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 23 Aug 2017 22:31:42 +0000 (23:31 +0100)
uip/install-mh.c
uip/post.c

index 359a78daba19c5face25d9704fe521ae7b7fb8d5..618531956959f2e085ab046d7de8ce79e906d9ab 100644 (file)
@@ -108,8 +108,7 @@ main (int argc, char **argv)
     if (stat (defpath, &st) != NOTOK) {
        if (check)
            done(0);
-
-       else if (autof)
+       if (autof)
            adios (NULL, "invocation error");
         adios (NULL, "You already have an nmh profile, use an editor to modify it");
     }
index 1b266462ec93ae2cf9748cc0b5f042aa73335316..08e524265b1afa237e8393e56708a3d59f8f19cf 100644 (file)
@@ -669,9 +669,8 @@ main (int argc, char **argv)
     if (debug) {
        pl ();
        done (0);
-    } else {
-       fclose (out);
     }
+    fclose (out);
 
     /*
      * Here's how we decide which address to use as the envelope-from