cli/command/container: fix "unused-receiver" linting
cli/command/container/client_test.go:78:7: unused-receiver: method receiver 'f' is not referenced in method's body, consider removing or renaming it as _ (revive) func (f *fakeClient) ContainerExecStart(context.Context, string, container.ExecStartOptions) error { ^ cli/command/container/create_test.go:383:7: unused-receiver: method receiver 'f' is not referenced in method's body, consider removing or renaming it as _ (revive) func (f fakeNotFound) NotFound() {} ^ cli/command/container/create_test.go:384:7: unused-receiver: method receiver 'f' is not referenced in method's body, consider removing or renaming it as _ (revive) func (f fakeNotFound) Error() string { return "error fake not found" } ^ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
4827fdef91
commit
e71380eb5b
@ -75,7 +75,7 @@ func (f *fakeClient) ContainerExecInspect(_ context.Context, execID string) (con
|
|||||||
return container.ExecInspect{}, nil
|
return container.ExecInspect{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *fakeClient) ContainerExecStart(context.Context, string, container.ExecStartOptions) error {
|
func (*fakeClient) ContainerExecStart(context.Context, string, container.ExecStartOptions) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -380,5 +380,5 @@ func TestCreateContainerWithProxyConfig(t *testing.T) {
|
|||||||
|
|
||||||
type fakeNotFound struct{}
|
type fakeNotFound struct{}
|
||||||
|
|
||||||
func (f fakeNotFound) NotFound() {}
|
func (fakeNotFound) NotFound() {}
|
||||||
func (f fakeNotFound) Error() string { return "error fake not found" }
|
func (fakeNotFound) Error() string { return "error fake not found" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user