Merge pull request #76349 from tedyu/master

Return from loop in removeZone when zone is found
k3s-v1.15.3
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
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ func (nt *NodeTree) removeZone(zone string) {
for i, z := range nt.zones {
if z == zone {
nt.zones = append(nt.zones[:i], nt.zones[i+1:]...)
return
}
}
}