Skip to content

Commit 3846c2a

Browse files
committed
Merge branch 'tb/receive-pack-code-cleanup'
Code clean-up. * tb/receive-pack-code-cleanup: builtin/receive-pack.c: remove redundant 'if'
2 parents fa61b77 + af845a6 commit 3846c2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/receive-pack.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,8 +2214,7 @@ static const char *unpack(int err_fd, struct shallow_info *si)
22142214
close(err_fd);
22152215
return "unable to create temporary object directory";
22162216
}
2217-
if (tmp_objdir)
2218-
strvec_pushv(&child.env_array, tmp_objdir_env(tmp_objdir));
2217+
strvec_pushv(&child.env_array, tmp_objdir_env(tmp_objdir));
22192218

22202219
/*
22212220
* Normally we just pass the tmp_objdir environment to the child

0 commit comments

Comments
 (0)