Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed Aug 19, 2024
1 parent 044e6b8 commit b0a3c3a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions checks/handler_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ func handlerCheck(ctx context.Context, conf *config.Configuration, reg *api.Regi
func isDocker() bool {
util.Logln("isDocker function")
aws_runtime := strings.ToLower(os.Getenv("AWS_EXECUTION_ENV"))
if strings.HasPrefix(aws_runtime, "provided") {
return true
}
return false
util.Logln(aws_runtime)
return strings.HasPrefix(aws_runtime, "provided")
}

func (r runtimeConfig) check(h handlerConfigs) bool {
util.Logln("Testing the check in Docker, to skip handler check - 3")
util.Logln("Testing the check in Docker, to skip handler check - 4")
if !h.conf.TestingOverride {
esm := strings.ToLower(os.Getenv("NEW_RELIC_USE_ESM"))
if esm == "true" {
Expand Down

0 comments on commit b0a3c3a

Please sign in to comment.