Merge pull request #90522 from beautytiger/fix/nilranger

cleanup: no need nil check before range
This commit is contained in:
Kubernetes Prow Robot
2020-08-27 17:54:31 -07:00
committed by GitHub
3 changed files with 10 additions and 16 deletions

View File

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