Remove unnecessary indirection
This commit is contained in:
parent
ab685cfe04
commit
62e7037f20
2 changed files with 9 additions and 9 deletions
|
|
@ -289,7 +289,7 @@ func (wk *worker) runIterator(it graph.Iterator) {
|
|||
}
|
||||
tags := make(map[string]graph.Value)
|
||||
it.TagResults(tags)
|
||||
if !wk.send(&Result{actualResults: &tags}) {
|
||||
if !wk.send(&Result{actualResults: tags}) {
|
||||
break
|
||||
}
|
||||
for it.NextPath() {
|
||||
|
|
@ -300,7 +300,7 @@ func (wk *worker) runIterator(it graph.Iterator) {
|
|||
}
|
||||
tags := make(map[string]graph.Value)
|
||||
it.TagResults(tags)
|
||||
if !wk.send(&Result{actualResults: &tags}) {
|
||||
if !wk.send(&Result{actualResults: tags}) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue