Use go idiomatic to replace loop

k3s-v1.15.3
Ted Yu 2019-03-20 11:40:21 -07:00 committed by Ted Yu
parent 155688b2f3
commit 793fd74a42
1 changed files with 1 additions and 3 deletions

View File

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