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