From 432eb748141f23d852fccdbc511e9074608ef922 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:28:27 +0100 Subject: [PATCH] lib: avoid unnecessary use of fmt.Sprintf for string constant --- lib/oauthutil/oauthutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.go index 80fe41b82..470270795 100644 --- a/lib/oauthutil/oauthutil.go +++ b/lib/oauthutil/oauthutil.go @@ -229,7 +229,7 @@ func maybeWrapOAuthError(err error, remoteName string) (newErr error) { var suggestion string switch resp.Error { case "invalid_client", "unauthorized_client", "unsupported_grant_type", "invalid_scope": - suggestion = fmt.Sprintf("if you're using your own client id/secret, make sure they're properly set up following the docs") + suggestion = "if you're using your own client id/secret, make sure they're properly set up following the docs" case "invalid_grant": fallthrough default: