]> 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 359a78d..6185319 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 1b26646..08e5242 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