Skip to content

Commit 3027676

Browse files
mirucamgitster
authored andcommitted
bisect--helper: use '-res' in 'cmd_bisect__helper' return
Following 'enum bisect_error' vocabulary, return variable 'res' is always non-positive. Let's use '-res' instead of 'abs(res)' to make the code clearer. Mentored-by: Christian Couder <[email protected]> Helped-by: Junio C Hamano <[email protected]> Signed-off-by: Miriam Rubio <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ef5aef5 commit 3027676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/bisect--helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,5 +731,5 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
731731
if (res == BISECT_INTERNAL_SUCCESS_MERGE_BASE)
732732
res = BISECT_OK;
733733

734-
return abs(res);
734+
return -res;
735735
}

0 commit comments

Comments
 (0)