@@ -118,7 +118,7 @@ func writeHTTPError(w http.ResponseWriter, req *http.Request, code int, message
118118type authErrorCode string
119119
120120// https://tools.ietf.org/html/rfc6749#section-4.1.2.1
121- // nolint:unused,varcheck,deadcode
121+ // nolint:unused
122122const (
123123 authErrorCodeInvalidRequest authErrorCode = "invalid_request"
124124 authErrorCodeUnauthorizedClient authErrorCode = "unauthorized_client"
@@ -168,7 +168,7 @@ func writeAuthError(w http.ResponseWriter, req *http.Request, redirectURI *url.U
168168// but useful when the redirect URI is configured at the client only, and not
169169// passed in the authorization request. If the error cannot make use of this, it
170170// will be ignored and the original error returned
171- func addRedirectToError (err error , redirectURI string ) error { //nolint:unparam,unused,deadcode
171+ func addRedirectToError (err error , redirectURI string ) error { //nolint:unparam,unused
172172 if err , ok := err .(* authError ); ok {
173173 err .RedirectURI = redirectURI
174174 return err
@@ -179,7 +179,7 @@ func addRedirectToError(err error, redirectURI string) error { //nolint:unparam,
179179type bearerErrorCode string
180180
181181// https://tools.ietf.org/html/rfc6750#section-3.1
182- // nolint:unused,varcheck,deadcode
182+ // nolint:unused
183183const (
184184 // The request is missing a required parameter, includes an unsupported
185185 // parameter or parameter value, repeats the same parameter, uses more than
0 commit comments