swarmd/cmd/swarmctl/cluster/common.go
Function getCluster
has 5 return statements (exceeds 4 allowed). Open
Open
func getCluster(ctx context.Context, c api.ControlClient, input string) (*api.Cluster, error) {
rg, err := c.GetCluster(ctx, &api.GetClusterRequest{ClusterID: input})
if err == nil {
return rg.Cluster, nil
}