Skip to content

Commit

Permalink
merging go vet issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Jul 1, 2024
1 parent 85f42ee commit 127040c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 127040c

Please sign in to comment.