summaryrefslogtreecommitdiff
path: root/t/helper/test-xml-encode.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-12-07 19:26:32 +0100
committerJunio C Hamano <gitster@pobox.com>2021-12-07 13:25:16 -0800
commit0faf84d97d21d5d29132c8c021b16afe72d9fbf3 (patch)
tree232f57b15fd6b9485311283568377e4061eda3e8 /t/helper/test-xml-encode.c
parentadcd4d4c6f9352bef53058161db36bb1ccd5cd9d (diff)
gc: return from cmd_gc(), don't call exit()
A minor code cleanup. Let's "return" from cmd_gc() instead of calling exit(). See 338abb0f045 (builtins + test helpers: use return instead of exit() in cmd_*, 2021-06-08) for other such cases. While we're at it add a \n to separate the variable declaration from the rest of the code in this block. Both of these changes make a subsequent change smaller and easier to read. This change isn't really needed for that subsequent change, but now someone viewing that future behavior change won't need to wonder why we're either still calling exit() here, or fixing it while we're at it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-xml-encode.c')
0 files changed, 0 insertions, 0 deletions