Return from loop in removeZone when zone is found

k3s-v1.15.3
Ted Yu 2019-04-09 14:42:40 -07:00 committed by Ted Yu
parent 552d1ebd70
commit cd3a30047f
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
}
}
}