summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-02-28 11:08:15 -0800
committerJesse Ezell <[email protected]>2014-02-28 11:08:15 -0800
commit127643eb543cbeac88466956a6394505abc1176e (patch)
tree8c22059fa1946fcbc342e46bc6db09bf763dc57c
parentd6332f9526b48e5145db4ee32d8976cdd0f5972c (diff)
move return outside of switch for go 1.0 / travis
-rw-r--r--branch.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/branch.go b/branch.go
index 777231c..aee23e4 100644
--- a/branch.go
+++ b/branch.go
@@ -98,9 +98,8 @@ func (b *Branch) IsHead() (bool, error) {
return true, nil
case 0:
return false, nil
- default:
- return false, MakeGitError(ret)
}
+ return false, MakeGitError(ret)
}