summaryrefslogtreecommitdiff
path: root/branch.go
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-04-04 00:56:58 -0700
committerJesse Ezell <[email protected]>2014-04-04 00:56:58 -0700
commita7d3c5955ac9426dd57bf4d3df87ca1eba049789 (patch)
tree5997a532ca9c2f84b03185b4fb0e2c63375afd24 /branch.go
parentfc999289a2f4855dec72d52d360319362a2360a1 (diff)
merge with improved error handling logic
Diffstat (limited to 'branch.go')
-rw-r--r--branch.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/branch.go b/branch.go
index a0c1dbd..af21140 100644
--- a/branch.go
+++ b/branch.go
@@ -53,9 +53,7 @@ func (i *BranchIterator) Next() (*Branch, BranchType, error) {
ecode := C.git_branch_next(&refPtr, &refType, i.ptr)
- if ecode == C.GIT_ITEROVER {
- return nil, BranchLocal, ErrIterOver
- } else if ecode < 0 {
+ if ecode < 0 {
return nil, BranchLocal, MakeGitError(ecode)
}