Simplify is_kept_pack()
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index f91f256c56e5e4be0b3f162695e1d35e63124569..a34d26c23f2f8e7bc3acb27a4596931fa0a7a7f9 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -1743,7 +1743,7 @@ static int reuse_worktree_file(const char *name, const unsigned char *sha1, int
         * objects however would tend to be slower as they need
         * to be individually opened and inflated.
         */
-       if (!FAST_WORKING_DIRECTORY && !want_file && has_sha1_pack(sha1, NULL))
+       if (!FAST_WORKING_DIRECTORY && !want_file && has_sha1_pack(sha1))
                return 0;
 
        len = strlen(name);