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