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 b0a3c3a commit daf0308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/handler_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func isDocker() bool {
util.Logln("isDocker function")
aws_runtime := strings.ToLower(os.Getenv("AWS_EXECUTION_ENV"))
util.Logln(aws_runtime)
return strings.HasPrefix(aws_runtime, "provided")
return !strings.HasPrefix(aws_runtime, "AWS_Lambda")
}

func (r runtimeConfig) check(h handlerConfigs) bool {
Expand Down

0 comments on commit daf0308

Please sign in to comment.