fix linting warning

Signed-off-by: Evans Mungai <mbuevans@gmail.com>
pull/31115/head
Evans Mungai 1 month ago
parent 5e6a411c1f
commit 9e1cbbebcb
No known key found for this signature in database
GPG Key ID: BBEB812143DD14E1

@ -129,7 +129,7 @@ func NewClient(options ...ClientOption) (*Client, error) {
authorizer.SetUserAgent(version.GetUserAgent())
if client.username != "" && client.password != "" {
authorizer.Credential = func(_ context.Context, hostport string) (auth.Credential, error) {
authorizer.Credential = func(_ context.Context, _ string) (auth.Credential, error) {
return auth.Credential{Username: client.username, Password: client.password}, nil
}
} else {

Loading…
Cancel
Save