Unverified Commit 40bd5f08 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #62510 from WanLinghao/svc_var_clean

Automatic merge from submit-queue (batch tested with PRs 62510, 61689). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. clean unused error type variable **What this PR does / why we need it**: The function which invoked this variable was removed by https://github.com/kubernetes/kubernetes/pull/58725/ **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 2c54e9ca c1e5b1bf
...@@ -22,7 +22,6 @@ import ( ...@@ -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 { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment