From aba98008acc721a860a0fbf81d69b103e7b91e85 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Mon, 9 Oct 2023 14:55:23 +0200 Subject: [PATCH] misc: remove redundant nil check Signed-off-by: Hidde Beydals --- internal/reconcile/summarize/summary_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/reconcile/summarize/summary_test.go b/internal/reconcile/summarize/summary_test.go index c7703a94..c4c16e4e 100644 --- a/internal/reconcile/summarize/summary_test.go +++ b/internal/reconcile/summarize/summary_test.go @@ -373,10 +373,6 @@ func TestSummarizeAndPatch(t *testing.T) { tt.afterFunc(g, obj) } - if obj == nil { - t.Fail() - } - // Check if the object status is valid as per kstatus. condns := &conditionscheck.Conditions{NegativePolarity: testReadyConditions.NegativePolarity} checker := conditionscheck.NewChecker(c, condns)