Remove graph.Err helper function
Since Err() is now a member of the Iterator interface, we don't need this helper function anymore.
This commit is contained in:
parent
745d4874e6
commit
33dd596ab4
8 changed files with 8 additions and 19 deletions
|
|
@ -166,7 +166,7 @@ func (it *LinksTo) Next() bool {
|
|||
}
|
||||
|
||||
// If there's an error in the 'next' iterator, we save it and we're done.
|
||||
if err := graph.Err(it.nextIt); err != nil {
|
||||
if err := it.nextIt.Err(); err != nil {
|
||||
it.err = err
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue