mirror of https://github.com/docker/cli.git
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 <github@gone.nl>
This commit is contained in:
parent
640305f33c
commit
1e7774228c
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue