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

index 23ccf0387fec78a7d11978522a00d80a21390efe..e4f3e5b8693deae5e1f9c8fbf4b3c06fae156539 100644 (file)
@@ -124,9 +124,8 @@ get_file_info(const char *proc, const char *file_name) {
             advise(NULL, "filenames containing both single and double quotes "
                    "are unsupported for attachment");
             return NULL;
             advise(NULL, "filenames containing both single and double quotes "
                    "are unsupported for attachment");
             return NULL;
-        } else {
-            quotec = "\"";
         }
         }
+        quotec = "\"";
     }
 
     if ((cmd = concat(proc, " ", quotec, file_name, quotec, NULL))) {
     }
 
     if ((cmd = concat(proc, " ", quotec, file_name, quotec, NULL))) {