Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Nov 16, 2023
1 parent e0a9b3f commit daaa53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/jwt_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (o *remoteJWTChecker) getHost(token string) (string, error) {

// Actually this should never happen because of configuration sanity check. TODO: consider removing this condition.
if !o.options.parseToken {
errorString := fmt.Sprintf("impossible to obtain host for the authorization request - token parsing is turned off")
errorString := "impossible to obtain host for the authorization request - token parsing is turned off"
return "", errors.New(errorString)
}

Expand Down

0 comments on commit daaa53c

Please sign in to comment.