Use go idiomatic to replace loop

This commit is contained in:
Ted Yu 2019-03-20 11:40:21 -07:00 committed by Ted Yu
parent 155688b2f3
commit 793fd74a42

View File

@ -185,9 +185,7 @@ func traverseMetadata(head *store.NodeExtern, handleFunc func(*store.NodeExtern)
handleFunc(n) handleFunc(n)
for _, next := range n.Nodes { q = append(q, n.Nodes...)
q = append(q, next)
}
} }
} }