]> git.ipfire.org Git - thirdparty/git.git/commit
scalar-delete: do not 'die()' in 'delete_enlistment()'
authorVictoria Dye <vdye@github.com>
Thu, 18 Aug 2022 21:40:49 +0000 (21:40 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 04:35:32 +0000 (21:35 -0700)
commit9b24bb9205e62464c09882e626d17710fb62b82d
treeaf9fa38493d302e68cf6f2807f2e0e23dd4a9ff3
parentd2a79bc953375ed7dd8cb06fd3db92f85c64c206
scalar-delete: do not 'die()' in 'delete_enlistment()'

Rather than exiting with 'die()' when 'delete_enlistment()' encounters an
error, return an error code with the appropriate message. There's no need
for an abrupt exit with 'die()' in 'delete_enlistment()' because its only
caller ('cmd_delete()') properly cleans up allocated resources and returns
the 'delete_enlistment()' return value as its own exit code.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/scalar/scalar.c