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
|
|
@ -206,7 +206,7 @@ func (it *Materialize) Next() bool {
|
|||
}
|
||||
if it.aborted {
|
||||
n := graph.Next(it.subIt)
|
||||
if err := graph.Err(it.subIt); err != nil {
|
||||
if err := it.subIt.Err(); err != nil {
|
||||
it.err = err
|
||||
}
|
||||
return n
|
||||
|
|
@ -296,7 +296,7 @@ func (it *Materialize) materializeSet() {
|
|||
it.actualSize += 1
|
||||
}
|
||||
}
|
||||
if err := graph.Err(it.subIt); err != nil {
|
||||
if err := it.subIt.Err(); err != nil {
|
||||
it.err = err
|
||||
} else if it.aborted {
|
||||
if glog.V(2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue