From 460eea26527da2ee0b3c7a10ec72cff413ab9836 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 16 Oct 2023 11:29:45 +0200 Subject: [PATCH] lint fix --- lambda/wrapper.go | 4 ++-- lambda/wrapper_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lambda/wrapper.go b/lambda/wrapper.go index 5186d426..134e0ed3 100644 --- a/lambda/wrapper.go +++ b/lambda/wrapper.go @@ -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, ) { diff --git a/lambda/wrapper_test.go b/lambda/wrapper_test.go index afe4502f..72d95cd0 100644 --- a/lambda/wrapper_test.go +++ b/lambda/wrapper_test.go @@ -16,7 +16,7 @@ import ( func TestExecAwsLambdaExecWrapperNotSet(t *testing.T) { exec, execCalled := mockExec(t, "") - execAwsLambdaExecWrapper( + execAWSLambdaExecWrapper( mockedGetenv(t, ""), exec, ) @@ -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, )