Skip to content

Commit

Permalink
chore: remove duplicated code (#4258)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer authored Feb 21, 2023
1 parent 9b33bad commit 30b2f8e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/util/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 30b2f8e

Please sign in to comment.