Skip to content

Commit

Permalink
remove impossible condition (#11)
Browse files Browse the repository at this point in the history
impossible condition: `nil != nil`

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
  • Loading branch information
xcoulon authored Mar 19, 2024
1 parent 057b1bc commit dd44578
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/cmd/adm/must_gather_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dd44578

Please sign in to comment.