From 5254081fd611f3e90d21a32b839c458957bdc753 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 30 Mar 2023 16:34:04 +0200 Subject: [PATCH] cli/command/registry: fakeClient: remove name for unused arg (revive) cli/command/registry/login_test.go:37:26: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (c fakeClient) Info(ctx context.Context) (types.Info, error) { ^ cli/command/registry/login_test.go:41:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (c fakeClient) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registrytypes.AuthenticateOKBody, error) { ^ Signed-off-by: Sebastiaan van Stijn --- cli/command/registry/login_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/registry/login_test.go b/cli/command/registry/login_test.go index 2f5bc94a88..483f4578ee 100644 --- a/cli/command/registry/login_test.go +++ b/cli/command/registry/login_test.go @@ -34,11 +34,11 @@ type fakeClient struct { client.Client } -func (c fakeClient) Info(ctx context.Context) (types.Info, error) { +func (c fakeClient) Info(context.Context) (types.Info, error) { return types.Info{}, nil } -func (c fakeClient) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registrytypes.AuthenticateOKBody, error) { +func (c fakeClient) RegistryLogin(_ context.Context, auth types.AuthConfig) (registrytypes.AuthenticateOKBody, error) { if auth.Password == expiredPassword { return registrytypes.AuthenticateOKBody{}, fmt.Errorf("Invalid Username or Password") }