From 2a411136b70e0ded8ee0b716f5b774f74abe8c9b Mon Sep 17 00:00:00 2001 From: ostiwe Date: Tue, 4 Nov 2025 19:59:44 +0300 Subject: [PATCH] refactor: Remove unused variable --- modules/jwt/jwt.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/jwt/jwt.go b/modules/jwt/jwt.go index d8511e3..e38f819 100644 --- a/modules/jwt/jwt.go +++ b/modules/jwt/jwt.go @@ -14,9 +14,8 @@ import ( ) var ( - signKey *rsa.PrivateKey - publicSignKey *rsa.PublicKey - signMethod jwt.SigningMethod = jwt.SigningMethodRS256 + signKey *rsa.PrivateKey + signMethod jwt.SigningMethod = jwt.SigningMethodRS256 AuthMiddleware *ginJwt.GinJWTMiddleware ) @@ -49,11 +48,6 @@ func Init() { panic(err) } - publicSignKey, err = jwt.ParseRSAPublicKeyFromPEM(publicFile) - if err != nil { - panic(err) - } - AuthMiddleware = &ginJwt.GinJWTMiddleware{ SigningAlgorithm: signMethod.Alg(), PrivKeyBytes: privateFile,