summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-11 20:27:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-11 20:27:00 (GMT)
commite57856502d93d1571d1280638b5b33000412d109 (patch)
tree6fabcb3210bd8d08a23e27bbb605291371f883b6
parent2c40c6a77faaee1bfabe95d58371341142f62635 (diff)
parentc7b078054523a1a16ec49d9071877475c4ca5482 (diff)
downloadgit-e57856502d93d1571d1280638b5b33000412d109.zip
git-e57856502d93d1571d1280638b5b33000412d109.tar.gz
git-e57856502d93d1571d1280638b5b33000412d109.tar.bz2
Merge branch 'rs/pack-objects-pbase-cleanup'
Code clean-up. * rs/pack-objects-pbase-cleanup: pack-objects: remove unnecessary NULL check
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index e730b41..c753e92 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -1289,7 +1289,7 @@ static int done_pbase_path_pos(unsigned hash)
static int check_pbase_path(unsigned hash)
{
- int pos = (!done_pbase_paths) ? -1 : done_pbase_path_pos(hash);
+ int pos = done_pbase_path_pos(hash);
if (0 <= pos)
return 1;
pos = -pos - 1;