]> diplodocus.org Git - nmh/commitdiff
Don't `else' after return. Simplify control flow.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Oct 2016 22:20:20 +0000 (23:20 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Oct 2016 22:34:05 +0000 (23:34 +0100)
sbr/m_mktemp.c

index 6bfa705..2ab8d12 100644 (file)
@@ -156,9 +156,8 @@ m_mktemps(
     if (suffix == NULL) {
         if ((tmpfil = m_mktemp2(NULL, pfx_in, fd_ret, fp_ret))) {
             return add(tmpfil, NULL);
-        } else {
-            return NULL;
         }
+        return NULL;
     }
 
 #if HAVE_MKSTEMPS