Clean unused error type variable

The function which invoked this variable
	was removed by
	https://github.com/kubernetes/kubernetes/pull/58725/
pull/8/head
WanLinghao 2018-04-13 10:27:22 +08:00
parent dcc6d78ac0
commit c1e5b1bf2c
1 changed files with 0 additions and 3 deletions

View File

@ -22,7 +22,6 @@ import (
"crypto/rsa" "crypto/rsa"
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"errors"
"fmt" "fmt"
"strings" "strings"
@ -140,8 +139,6 @@ type Validator interface {
NewPrivateClaims() interface{} NewPrivateClaims() interface{}
} }
var errMismatchedSigningMethod = errors.New("invalid signing method")
func (j *jwtTokenAuthenticator) AuthenticateToken(tokenData string) (user.Info, bool, error) { func (j *jwtTokenAuthenticator) AuthenticateToken(tokenData string) (user.Info, bool, error) {
if !j.hasCorrectIssuer(tokenData) { if !j.hasCorrectIssuer(tokenData) {
return nil, false, nil return nil, false, nil