summaryrefslogtreecommitdiff
path: root/branch.go
diff options
context:
space:
mode:
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)
}