Fix a missed review comment
This commit is contained in:
parent
5eed4d9667
commit
131f5de7ea
1 changed files with 5 additions and 5 deletions
|
|
@ -259,15 +259,15 @@ func (it *Or) cleanUp() {}
|
||||||
func (it *Or) Close() error {
|
func (it *Or) Close() error {
|
||||||
it.cleanUp()
|
it.cleanUp()
|
||||||
|
|
||||||
var ret error
|
var err error
|
||||||
for _, sub := range it.internalIterators {
|
for _, sub := range it.internalIterators {
|
||||||
err := sub.Close()
|
serr := sub.Close()
|
||||||
if err != nil && ret == nil {
|
if serr != nil && err == nil {
|
||||||
ret = err
|
err = serr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (it *Or) Optimize() (graph.Iterator, bool) {
|
func (it *Or) Optimize() (graph.Iterator, bool) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue