diff options
| author | Michael Daffin <[email protected]> | 2016-09-05 15:56:09 +0100 |
|---|---|---|
| committer | Michael Daffin <[email protected]> | 2016-09-05 15:56:09 +0100 |
| commit | 74bc3c6242f8696553aa2529767219ede1ff47ad (patch) | |
| tree | 354d24c6beddf250e7be954584fa5e3eabdc863d /config_test.go | |
| parent | 241aa34d83b210ceaab7029c46e05794f2ea9797 (diff) | |
Add check for ErrIterOver in BranchIterator.ForEach
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.
Diffstat (limited to 'config_test.go')
0 files changed, 0 insertions, 0 deletions
