From 440bbed06f05a7521966cf49b572498cb1be0cec Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 21 Feb 2018 01:05:41 +0100 Subject: git-branch-list: Remove `$?` from `exit` Without an argument, `exit` will, like `return`, use the exit status of the last command executed. The `$?` is therefore redundant and can be removed. --- git-branch-list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-branch-list b/git-branch-list index fe24d71..1e8593c 100755 --- a/git-branch-list +++ b/git-branch-list @@ -132,7 +132,7 @@ case "$command" in "") list_branches - exit $? + exit ;; *) # If `$1` is an integer -- cgit v1.2.3