Skip to content

Commit

Permalink
Merge pull request #302 from testwill/fmt
Browse files Browse the repository at this point in the history
chore: unnecessary use of fmt.Sprintf
  • Loading branch information
iegomez committed Nov 18, 2023
2 parents d36be70 + daaa53c commit 5a33d17
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 5a33d17

Please sign in to comment.