• Michael Daffin's avatar
    Add check for ErrIterOver in BranchIterator.ForEach · 74bc3c62
    Michael Daffin authored
    The BranchIterator.ForEach currently returns the ErrIterOver error if no
    error had occured during the iteration. This leads to a rather unhelpful
    blank error message with the error code -31 when iterating over the
    branches.
    
    This commit adds a check for ErrIterOver at the end of the ForEach
    method so that the client code only has to worry about checking for nil
    as apose to checking for the ErrIterOver error.
    74bc3c62
branch.go 5.22 KB