From 127040c7509546ede3fa9ce5a0adf62431de2823 Mon Sep 17 00:00:00 2001 From: Sivaanand Murugesan Date: Mon, 1 Jul 2024 15:00:41 +0530 Subject: [PATCH] merging go vet issues --- client/cluster.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/cluster.go b/client/cluster.go index a62ecb9b..531c8f72 100644 --- a/client/cluster.go +++ b/client/cluster.go @@ -70,10 +70,7 @@ func (h *V1Client) GetClusterByName(name string, virtual bool) (*models.V1Spectr return nil, fmt.Errorf("expected 1 cluster: got %d", len(clusterSummaries)) } cluster, err := h.GetCluster(clusterSummaries[0].Metadata.UID) - var e *transport.TransportError - if errors.As(err, &e) && e.HttpCode == 404 { - return nil, nil - } else if err != nil { + if err != nil { return nil, err } return cluster, nil