aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-02-21 00:45:44 +0100
committerTeddy Wing2018-02-21 00:45:44 +0100
commite873319c864540146f065ab6698a98c173d0eca0 (patch)
treea2885b4c34bd3b4bf9bee85b8165431b945a28d9
parentae774af79b17c4369a4ce94ed16a2a4d8a9bb90d (diff)
downloadgit-branch-list-e873319c864540146f065ab6698a98c173d0eca0.tar.bz2
git-branch-list(is_a_branch): Remove `$?` from `return`
I had forgotten when I wrote this, but the Bash help says: > If N is omitted, the return status is that of the last command. Meaning we don't need to explicitly return the code from the last command as that's what happens by default.
-rwxr-xr-xgit-branch-list2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-branch-list b/git-branch-list
index 10713df..e7d7dfe 100755
--- a/git-branch-list
+++ b/git-branch-list
@@ -88,7 +88,7 @@ function is_a_branch () {
local branch="$1"
git rev-parse --verify "$branch" > /dev/null 2>&1
- return $?
+ return
}
function branch_by_id () {