From c1e5b1bf2c09e0532da205d857a4aa15389eec75 Mon Sep 17 00:00:00 2001 From: WanLinghao Date: Fri, 13 Apr 2018 10:27:22 +0800 Subject: [PATCH] Clean unused error type variable The function which invoked this variable was removed by https://github.com/kubernetes/kubernetes/pull/58725/ --- pkg/serviceaccount/jwt.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/serviceaccount/jwt.go b/pkg/serviceaccount/jwt.go index 01c369a31f3..73960d7f13f 100644 --- a/pkg/serviceaccount/jwt.go +++ b/pkg/serviceaccount/jwt.go @@ -22,7 +22,6 @@ import ( "crypto/rsa" "encoding/base64" "encoding/json" - "errors" "fmt" "strings" @@ -140,8 +139,6 @@ type Validator interface { NewPrivateClaims() interface{} } -var errMismatchedSigningMethod = errors.New("invalid signing method") - func (j *jwtTokenAuthenticator) AuthenticateToken(tokenData string) (user.Info, bool, error) { if !j.hasCorrectIssuer(tokenData) { return nil, false, nil