Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Oct 16, 2023
1 parent 1766dc2 commit 460eea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lambda/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ func init() {
// Honor the AWS_LAMBDA_EXEC_WRAPPER configuration at startup, trying to emulate
// the behavior of managed runtimes, as this configuration is otherwise not applied
// by provided runtimes (or go1.x).
execAwsLambdaExecWrapper(os.Getenv, syscall.Exec)
execAWSLambdaExecWrapper(os.Getenv, syscall.Exec)
}

// If AWS_LAMBDA_EXEC_WRAPPER is defined, replace the current process by spawning
// it with the current process' arguments (including the program name). If the call
// to syscall.Exec fails, this aborts the process with a fatal error.
func execAwsLambdaExecWrapper(
func execAWSLambdaExecWrapper(
getenv func(key string) string,
sysExec func(argv0 string, argv []string, envv []string) error,
) {
Expand Down
4 changes: 2 additions & 2 deletions lambda/wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

func TestExecAwsLambdaExecWrapperNotSet(t *testing.T) {
exec, execCalled := mockExec(t, "<nope>")
execAwsLambdaExecWrapper(
execAWSLambdaExecWrapper(
mockedGetenv(t, ""),
exec,
)
Expand All @@ -26,7 +26,7 @@ func TestExecAwsLambdaExecWrapperNotSet(t *testing.T) {
func TestExecAwsLambdaExecWrapperSet(t *testing.T) {
wrapper := "/path/to/wrapper/entry/point"
exec, execCalled := mockExec(t, wrapper)
execAwsLambdaExecWrapper(
execAWSLambdaExecWrapper(
mockedGetenv(t, wrapper),
exec,
)
Expand Down

0 comments on commit 460eea2

Please sign in to comment.