Merge pull request #302 from testwill/fmt

chore: unnecessary use of fmt.Sprintf
This commit is contained in:
Ignacio Gómez 2023-11-17 23:01:49 -03:00 committed by GitHub
commit 5a33d17e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}