From 1e7774228c1cf570a1954136534b92e152890341 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 30 Oct 2019 10:58:16 +0100 Subject: [PATCH] service: remove unused opts from newService() (unparam) ``` cli/command/service/client_test.go:75:41: `newService` - `opts` always receives `nil` (unparam) func newService(id string, name string, opts ...func(*swarm.Service)) swarm.Service { ^ ``` Signed-off-by: Sebastiaan van Stijn --- cli/command/service/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/service/client_test.go b/cli/command/service/client_test.go index a64c81ad91..d00afe2ca2 100644 --- a/cli/command/service/client_test.go +++ b/cli/command/service/client_test.go @@ -72,6 +72,6 @@ func (f *fakeClient) NetworkInspect(ctx context.Context, networkID string, optio return types.NetworkResource{}, nil } -func newService(id string, name string, opts ...func(*swarm.Service)) swarm.Service { - return *Service(append(opts, ServiceID(id), ServiceName(name))...) +func newService(id string, name string) swarm.Service { + return *Service(ServiceID(id), ServiceName(name)) }