summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-05-24 14:54:27 -0400
committerJunio C Hamano <gitster@pobox.com>2022-05-24 14:27:19 -0700
commit58a6abb7bae98357677657825631de6652256be9 (patch)
tree7c139860a173394cb6d2eec7d893b143a684d17e /commit.c
parent44f9fd649673362bdbaae7067a9919b1fe4c96d1 (diff)
builtin/pack-objects.c: avoid redundant NULL check
Before calling `for_each_object_in_pack()`, the caller `read_packs_list_from_stdin()` loops through each of the `include_packs` and checks that its `->util` pointer (which is used to store the `struct packed_git *` itself) is non-NULL. This check is redundant, because `read_packs_list_from_stdin()` already checks that the included packs are non-NULL earlier on in the same function (and it does not add any new entries in between). Remove this check, since it is not doing anything in the meantime. Co-authored-by: Victoria Dye <vdye@github.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions