mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 13:42:02 +00:00
Merge pull request #75514 from tedyu/master
Use go idiomatic to replace loop
This commit is contained in:
@@ -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...)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user