Merge pull request #76349 from tedyu/master

Return from loop in removeZone when zone is found
This commit is contained in:
Kubernetes Prow Robot 2019-04-10 18:46:09 -07:00 committed by GitHub
commit df5bff927f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
} }
} }