]> asedeno.scripts.mit.edu Git - git.git/blobdiff - http.c
http.c: Drop useless != NULL test in finish_http_pack_request
[git.git] / http.c
diff --git a/http.c b/http.c
index e9e22695665ec62381ea56b19f8c61ed898e503e..7942eea5d829bd172f141c056cf83bdfcf83546b 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1005,12 +1005,9 @@ int finish_http_pack_request(struct http_pack_request *preq)
        struct packed_git *p = preq->target;
 
        p->pack_size = ftell(preq->packfile);
-
-       if (preq->packfile != NULL) {
-               fclose(preq->packfile);
-               preq->packfile = NULL;
-               preq->slot->local = NULL;
-       }
+       fclose(preq->packfile);
+       preq->packfile = NULL;
+       preq->slot->local = NULL;
 
        lst = preq->lst;
        while (*lst != p)