diff --git a/pkg/util/http.go b/pkg/util/http.go index d0d12878201..422d91f2098 100644 --- a/pkg/util/http.go +++ b/pkg/util/http.go @@ -24,16 +24,6 @@ import ( var disableKeepAlives bool -func init() { - var err error - // This code will be removed in https://github.com/kedacore/keda/pull/4191 - // nosemgrep: trailofbits.go.invalid-usage-of-modified-variable.invalid-usage-of-modified-variable - disableKeepAlives, err = ResolveOsEnvBool("KEDA_HTTP_DISABLE_KEEP_ALIVE", false) - if err != nil { - disableKeepAlives = false - } -} - func init() { disableKeepAlives = getKeepAliveValue() }