summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-08-23 14:33:48 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-23 14:33:48 -0700
commite22a48c4c093b7af1393c6509e3ad39c3bab8473 (patch)
tree199f1eff881165e2bd274323e9871044e6337106
parentMerge branch 'jt/fsck-code-cleanup' into maint (diff)
parentpack-objects: remove unnecessary NULL check (diff)
downloadtgif-e22a48c4c093b7af1393c6509e3ad39c3bab8473.tar.xz
Merge branch 'rs/pack-objects-pbase-cleanup' into maint
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 e730b415bf..c753e9237a 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;