diff options
| author | Jesse Ezell <[email protected]> | 2014-04-04 00:56:58 -0700 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-04-04 00:56:58 -0700 |
| commit | a7d3c5955ac9426dd57bf4d3df87ca1eba049789 (patch) | |
| tree | 5997a532ca9c2f84b03185b4fb0e2c63375afd24 /branch.go | |
| parent | fc999289a2f4855dec72d52d360319362a2360a1 (diff) | |
merge with improved error handling logic
Diffstat (limited to 'branch.go')
| -rw-r--r-- | branch.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) } |
