Commit 58cebf9b authored by fisherxu's avatar fisherxu

remove repeated code

parent 61892abc
...@@ -196,9 +196,6 @@ func (config AuthenticatorConfig) New() (authenticator.Request, *spec.SecurityDe ...@@ -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
} }
......
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