Remove unnecessary check
This commit is contained in:
1 parent
8676b83fe3
commit
1777d69495
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user