From 1777d6949542ccf6d6ec793d5d725168bd9c1020 Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 14 Dec 2021 23:26:18 -0500 Subject: [PATCH] Remove unnecessary check --- controller/handler/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/handler/handler.go b/controller/handler/handler.go index 9253b929..f7e753d4 100644 --- a/controller/handler/handler.go +++ b/controller/handler/handler.go @@ -40,7 +40,7 @@ func CreateRouter(staticFolder string, securityConfig *security.Config, uiConfig } func secureIfNecessary(securityConfig *security.Config, handler http.HandlerFunc) http.HandlerFunc { - if securityConfig != nil && securityConfig.IsValid() { + if securityConfig != nil { return security.Handler(handler, securityConfig) } return handler