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:
Andrew Dunham 2015-04-15 11:15:55 -07:00
parent 745d4874e6
commit 33dd596ab4
8 changed files with 8 additions and 19 deletions

View file

@ -203,7 +203,7 @@ func (it *HasA) Next() bool {
it.resultIt = &Null{}
if !graph.Next(it.primaryIt) {
if err := graph.Err(it.primaryIt); err != nil {
if err := it.primaryIt.Err(); err != nil {
it.err = err
}
return graph.NextLogOut(it, 0, false)