From 68532e0c0f5df665f28e8ca31f0b406ff7b58a90 Mon Sep 17 00:00:00 2001 From: gavinfish Date: Wed, 8 Jan 2020 15:28:46 +0800 Subject: [PATCH] Remove redundant nil check --- test/integration/apiserver/patch_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/integration/apiserver/patch_test.go b/test/integration/apiserver/patch_test.go index cf063cd31b1..6ab178b514a 100644 --- a/test/integration/apiserver/patch_test.go +++ b/test/integration/apiserver/patch_test.go @@ -107,10 +107,6 @@ func TestPatchConflicts(t *testing.T) { } // make sure the patch directive didn't get lost, and that an entry in the ownerReference list was deleted. found := findOwnerRefByUID(accessor.GetOwnerReferences(), UIDs[i]) - if err != nil { - t.Errorf("%v", err) - return - } if found { t.Errorf("patch of %s with $patch directive was ineffective, didn't delete the entry in the ownerReference slice: %#v", "secrets", UIDs[i]) }