From c41705122c433e13fa3263cf5334852a72ae00f7 Mon Sep 17 00:00:00 2001 From: Diogo Recharte Date: Wed, 14 Feb 2024 14:41:25 +0000 Subject: [PATCH] EVEREST-838 remove unneeded conditional --- pkg/kubernetes/client/client.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/kubernetes/client/client.go b/pkg/kubernetes/client/client.go index 457739d1..e140d659 100644 --- a/pkg/kubernetes/client/client.go +++ b/pkg/kubernetes/client/client.go @@ -224,11 +224,7 @@ func (c *Client) initOperatorClients() error { } c.customClientSet = customClient _, err = c.GetServerVersion() - if err != nil { - return err - } - - return nil + return err } func (c *Client) kubeClient() (client.Client, error) { //nolint:ireturn,nolintlint