mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #46162 from lixiaobing10051267/masterFound
Automatic merge from submit-queue (batch tested with PRs 45573, 46354, 46376, 46162, 46366) break the loop when found true break the loop when found true.
This commit is contained in:
commit
8f9f412d2f
@ -225,6 +225,7 @@ func (m *FakeNodeHandler) UpdateStatus(node *v1.Node) (*v1.Node, error) {
|
||||
if m.Existing[i].Name == node.Name {
|
||||
origNodeCopy = *m.Existing[i]
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
updatedNodeIndex := -1
|
||||
@ -233,6 +234,7 @@ func (m *FakeNodeHandler) UpdateStatus(node *v1.Node) (*v1.Node, error) {
|
||||
origNodeCopy = *m.UpdatedNodes[i]
|
||||
updatedNodeIndex = i
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user