From ef1577a212d1b5c6f908a59b943a512d33d312fe Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 8 Aug 2024 20:00:06 +0900 Subject: feat(backend/worker): enable `revive` in `golangci-lint` --- backend/auth/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/auth') diff --git a/backend/auth/jwt.go b/backend/auth/jwt.go index 966cc5f..e1852da 100644 --- a/backend/auth/jwt.go +++ b/backend/auth/jwt.go @@ -50,7 +50,7 @@ func NewShortLivedJWT(claims *JWTClaims) (string, error) { func ParseJWT(token string) (*JWTClaims, error) { claims := new(JWTClaims) - t, err := jwt.ParseWithClaims(token, claims, func(t *jwt.Token) (interface{}, error) { + t, err := jwt.ParseWithClaims(token, claims, func(*jwt.Token) (interface{}, error) { return []byte("TODO"), nil }) if err != nil { -- cgit v1.2.3-70-g09d2