Skip to content

Commit 760de8b

Browse files
Remove nolint directives for no-longer-extant linters.
1 parent d185423 commit 760de8b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/oauth2_errors.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func writeHTTPError(w http.ResponseWriter, req *http.Request, code int, message
118118
type authErrorCode string
119119

120120
// https://tools.ietf.org/html/rfc6749#section-4.1.2.1
121-
// nolint:unused,varcheck,deadcode
121+
// nolint:unused
122122
const (
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,
179179
type bearerErrorCode string
180180

181181
// https://tools.ietf.org/html/rfc6750#section-3.1
182-
// nolint:unused,varcheck,deadcode
182+
// nolint:unused
183183
const (
184184
// The request is missing a required parameter, includes an unsupported
185185
// parameter or parameter value, repeats the same parameter, uses more than

core/oidc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ func matchHTTPErrStatus(code int) func(error) bool {
10631063
}
10641064
}
10651065

1066-
func matchAnyErr() func(error) bool { // nolint:unused,varcheck,deadcode
1066+
func matchAnyErr() func(error) bool { // nolint:unused
10671067
return func(err error) bool {
10681068
return err != nil
10691069
}

oauth2/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "fmt"
66
type TokenErrorCode string
77

88
// https://tools.ietf.org/html/rfc6749#section-5.2
9-
// nolint:unused,varcheck,deadcode
9+
// nolint:unused
1010
const (
1111
// TokenErrorCodeInvalidRequest: The request is missing a required
1212
// parameter, includes an unsupported parameter value (other than grant

0 commit comments

Comments
 (0)