Unverified Commit df5bff92 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #76349 from tedyu/master

Return from loop in removeZone when zone is found
parents e3c3f75b cd3a3004
...@@ -127,6 +127,7 @@ func (nt *NodeTree) removeZone(zone string) { ...@@ -127,6 +127,7 @@ func (nt *NodeTree) removeZone(zone string) {
for i, z := range nt.zones { for i, z := range nt.zones {
if z == zone { if z == zone {
nt.zones = append(nt.zones[:i], nt.zones[i+1:]...) nt.zones = append(nt.zones[:i], nt.zones[i+1:]...)
return
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment