From daaa53c3923e1dafbc19734a19dc04101499db1e Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 16 Nov 2023 11:01:15 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf --- backends/jwt_remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/jwt_remote.go b/backends/jwt_remote.go index ee4cb09..cd225c7 100644 --- a/backends/jwt_remote.go +++ b/backends/jwt_remote.go @@ -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) }