]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
import: drop unnecessary condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:54:44 +0000 (13:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:54:44 +0000 (13:54 +0900)
src/import/pull-common.c

index 4117ed2e6aae6f33cc3d9455f1e9cb598d0457db..459024fb220fba672d320f615a14c87f17b46136 100644 (file)
@@ -520,8 +520,7 @@ int pull_verify(PullJob *main_job,
         }
 
 finish:
-        if (sig_file >= 0)
-                (void) unlink(sig_file_path);
+        (void) unlink(sig_file_path);
 
         if (gpg_home_created)
                 (void) rm_rf(gpg_home, REMOVE_ROOT|REMOVE_PHYSICAL);