mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Merge pull request #90522 from beautytiger/fix/nilranger
cleanup: no need nil check before range
This commit is contained in:
@@ -447,11 +447,9 @@ func testWebhookReinvocationPolicy(t *testing.T, watchCache bool) {
|
||||
}
|
||||
}
|
||||
|
||||
if tt.expectInvocations != nil {
|
||||
for k, v := range tt.expectInvocations {
|
||||
if recorder.GetCount(k) != v {
|
||||
t.Errorf("expected %d invocations of %s, but got %d", v, k, recorder.GetCount(k))
|
||||
}
|
||||
for k, v := range tt.expectInvocations {
|
||||
if recorder.GetCount(k) != v {
|
||||
t.Errorf("expected %d invocations of %s, but got %d", v, k, recorder.GetCount(k))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user