From 9d72ec314b5383a6a39d5dba057ec3f51d90cb9f Mon Sep 17 00:00:00 2001 From: Xavier Coulon Date: Tue, 19 Mar 2024 10:32:12 +0100 Subject: [PATCH] remove impossible condition impossible condition: `nil != nil` Signed-off-by: Xavier Coulon --- pkg/cmd/adm/must_gather_namespace.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/cmd/adm/must_gather_namespace.go b/pkg/cmd/adm/must_gather_namespace.go index abf2baf..b12be4a 100644 --- a/pkg/cmd/adm/must_gather_namespace.go +++ b/pkg/cmd/adm/must_gather_namespace.go @@ -85,9 +85,6 @@ func MustGatherNamespace(term ioutils.Terminal, kubeconfig *restclient.Config, n return err } dcl := discovery.NewDiscoveryClient(rcl) - if err != nil { - return err - } term.Println("fetching the list of API resources on the cluster...") apiResourceLists, err := dcl.ServerPreferredNamespacedResources()