Merge pull request #100394 from mengjiao-liu/clean-up-redundant-code

Fix use nil error
This commit is contained in:
Kubernetes Prow Robot 2021-05-25 21:33:20 -07:00 committed by GitHub
commit b496238dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,7 @@ func TestDecode(t *testing.T) {
switch {
case err == nil && test.errFn != nil:
t.Errorf("%d: failed: %v", i, err)
t.Errorf("%d: failed: not getting the expected error", i)
continue
case err != nil && test.errFn == nil:
t.Errorf("%d: failed: %v", i, err)