Skip to content

Commit

Permalink
Remove redundant Sprintf.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Feb 3, 2020
1 parent 930ed10 commit 9d2b10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/credential/okta/backend.go
Expand Up @@ -112,7 +112,7 @@ func (b *backend) Login(ctx context.Context, req *logical.Request, username stri
rsp, err := shim.Do(authReq, &result)
if err != nil {
if oe, ok := err.(*okta.Error); ok {
return nil, logical.ErrorResponse(fmt.Sprintf("Okta auth failed: %v (code=%v)", err, oe.ErrorCode)), nil, nil
return nil, logical.ErrorResponse("Okta auth failed: %v (code=%v)", err, oe.ErrorCode), nil, nil
}
return nil, logical.ErrorResponse(fmt.Sprintf("Okta auth failed: %v", err)), nil, nil
}
Expand Down

0 comments on commit 9d2b10c

Please sign in to comment.