Add check for ErrIterOver in BranchIterator.ForEach #341

Merged
mdaffin merged 1 commits from branchiterator-foreach-errors into master 2016-10-03 04:31:58 -05:00
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
}