From 1924bc9f0fa7461f56ed01de0aba95f98677bfb9 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 23 Feb 2022 18:02:15 +0100 Subject: [PATCH] stack/swarm: remove unneeded getStackServiceFilter() It was now an alias for getStackFilter, so no longer needed Signed-off-by: Sebastiaan van Stijn --- cli/command/stack/swarm/common.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cli/command/stack/swarm/common.go b/cli/command/stack/swarm/common.go index b4193df360..12731c0d88 100644 --- a/cli/command/stack/swarm/common.go +++ b/cli/command/stack/swarm/common.go @@ -17,10 +17,6 @@ func getStackFilter(namespace string) filters.Args { return filter } -func getStackServiceFilter(namespace string) filters.Args { - return getStackFilter(namespace) -} - func getStackFilterFromOpt(namespace string, opt opts.FilterOpt) filters.Args { filter := opt.Value() filter.Add("label", convert.LabelNamespace+"="+namespace) @@ -34,7 +30,7 @@ func getAllStacksFilter() filters.Args { } func getStackServices(ctx context.Context, apiclient client.APIClient, namespace string) ([]swarm.Service, error) { - return apiclient.ServiceList(ctx, types.ServiceListOptions{Filters: getStackServiceFilter(namespace)}) + return apiclient.ServiceList(ctx, types.ServiceListOptions{Filters: getStackFilter(namespace)}) } func getStackNetworks(ctx context.Context, apiclient client.APIClient, namespace string) ([]types.NetworkResource, error) {