Merge pull request #341 from mdaffin/branchiterator-foreach-errors

Add check for ErrIterOver in BranchIterator.ForEach
This commit is contained in:
Carlos Martín Nieto 2016-10-03 02:31:58 -07:00 committed by GitHub
commit c94904ea37
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ func (i *BranchIterator) ForEach(f BranchIteratorFunc) error {
}
}
if err != nil && IsErrorCode(err, ErrIterOver) {
return nil
}
return err
}