From 58cebf9bbca494edb1e7d423a4ca6b5b8cd6d741 Mon Sep 17 00:00:00 2001 From: fisherxu Date: Sat, 5 May 2018 18:09:33 +0800 Subject: [PATCH] remove repeated code --- pkg/kubeapiserver/authenticator/config.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/kubeapiserver/authenticator/config.go b/pkg/kubeapiserver/authenticator/config.go index 60d163bd9a1..e86228b7a43 100644 --- a/pkg/kubeapiserver/authenticator/config.go +++ b/pkg/kubeapiserver/authenticator/config.go @@ -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 }