mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-28 10:53:20 +01:00
Remove unnecessary check
This commit is contained in:
parent
8676b83fe3
commit
1777d69495
@ -40,7 +40,7 @@ func CreateRouter(staticFolder string, securityConfig *security.Config, uiConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
func secureIfNecessary(securityConfig *security.Config, handler http.HandlerFunc) http.HandlerFunc {
|
func secureIfNecessary(securityConfig *security.Config, handler http.HandlerFunc) http.HandlerFunc {
|
||||||
if securityConfig != nil && securityConfig.IsValid() {
|
if securityConfig != nil {
|
||||||
return security.Handler(handler, securityConfig)
|
return security.Handler(handler, securityConfig)
|
||||||
}
|
}
|
||||||
return handler
|
return handler
|
||||||
|
Loading…
Reference in New Issue
Block a user