mirror of https://github.com/k3s-io/k3s
Use go idiomatic to replace loop
parent
155688b2f3
commit
793fd74a42
|
@ -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...)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue