Remove unnecessary indirection

This commit is contained in:
kortschak 2014-08-26 11:19:22 +09:30
parent ab685cfe04
commit 62e7037f20
2 changed files with 9 additions and 9 deletions

View file

@ -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
}
}