Merge pull request #75514 from tedyu/master

Use go idiomatic to replace loop
This commit is contained in:
Kubernetes Prow Robot 2019-04-04 00:40:50 -07:00 committed by GitHub
commit f1acf4ad94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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...)
}
}