mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
remove repeated code
This commit is contained in:
parent
61892abc94
commit
58cebf9bbc
@ -196,9 +196,6 @@ func (config AuthenticatorConfig) New() (authenticator.Request, *spec.SecurityDe
|
||||
if config.Anonymous {
|
||||
return anonymous.NewAuthenticator(), &securityDefinitions, nil
|
||||
}
|
||||
}
|
||||
|
||||
if len(authenticators) == 0 {
|
||||
return nil, &securityDefinitions, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user