From 4827fdef91f7de150051299d3e523ce01dff067e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 17 Feb 2025 14:20:51 +0100 Subject: [PATCH] cli/command/trust: fix "unused-receiver" linting cli/command/trust/inspect_pretty_test.go:31:7: unused-receiver: method receiver 'c' is not referenced in method's body, consider removing or renaming it as _ (revive) func (c *fakeClient) Info(context.Context) (system.Info, error) { ^ cli/command/trust/inspect_pretty_test.go:35:7: unused-receiver: method receiver 'c' is not referenced in method's body, consider removing or renaming it as _ (revive) func (c *fakeClient) ImageInspect(context.Context, string, ...client.ImageInspectOption) (image.InspectResponse, error) { ^ cli/command/trust/inspect_pretty_test.go:39:7: unused-receiver: method receiver 'c' is not referenced in method's body, consider removing or renaming it as _ (revive) func (c *fakeClient) ImagePush(context.Context, string, image.PushOptions) (io.ReadCloser, error) { ^ Signed-off-by: Sebastiaan van Stijn --- cli/command/trust/inspect_pretty_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/command/trust/inspect_pretty_test.go b/cli/command/trust/inspect_pretty_test.go index b535c7a9f3..07e4edba41 100644 --- a/cli/command/trust/inspect_pretty_test.go +++ b/cli/command/trust/inspect_pretty_test.go @@ -28,15 +28,15 @@ type fakeClient struct { client.Client } -func (c *fakeClient) Info(context.Context) (system.Info, error) { +func (*fakeClient) Info(context.Context) (system.Info, error) { return system.Info{}, nil } -func (c *fakeClient) ImageInspect(context.Context, string, ...client.ImageInspectOption) (image.InspectResponse, error) { +func (*fakeClient) ImageInspect(context.Context, string, ...client.ImageInspectOption) (image.InspectResponse, error) { return image.InspectResponse{}, nil } -func (c *fakeClient) ImagePush(context.Context, string, image.PushOptions) (io.ReadCloser, error) { +func (*fakeClient) ImagePush(context.Context, string, image.PushOptions) (io.ReadCloser, error) { return &utils.NoopCloser{Reader: bytes.NewBuffer([]byte{})}, nil }