From e71380eb5b219ef9d6cd9f5f1934e4d283f11c4b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 17 Feb 2025 14:22:02 +0100 Subject: [PATCH] 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 --- cli/command/container/client_test.go | 2 +- cli/command/container/create_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/command/container/client_test.go b/cli/command/container/client_test.go index 6da7b4e105..61bf4c9ec8 100644 --- a/cli/command/container/client_test.go +++ b/cli/command/container/client_test.go @@ -75,7 +75,7 @@ func (f *fakeClient) ContainerExecInspect(_ context.Context, execID string) (con 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 } diff --git a/cli/command/container/create_test.go b/cli/command/container/create_test.go index c02ed14fb5..a5a09ce54a 100644 --- a/cli/command/container/create_test.go +++ b/cli/command/container/create_test.go @@ -380,5 +380,5 @@ func TestCreateContainerWithProxyConfig(t *testing.T) { type fakeNotFound struct{} -func (f fakeNotFound) NotFound() {} -func (f fakeNotFound) Error() string { return "error fake not found" } +func (fakeNotFound) NotFound() {} +func (fakeNotFound) Error() string { return "error fake not found" }