mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +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 {
|
if config.Anonymous {
|
||||||
return anonymous.NewAuthenticator(), &securityDefinitions, nil
|
return anonymous.NewAuthenticator(), &securityDefinitions, nil
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if len(authenticators) == 0 {
|
|
||||||
return nil, &securityDefinitions, nil
|
return nil, &securityDefinitions, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user