Skip to content

Commit 2729d65

Browse files
committed
change lambda handler function signature to prevent new warning
#268 aws/aws-lambda-nodejs-runtime-interface-client#137
1 parent 3ece754 commit 2729d65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ module.exports = (app, options) => {
3333
})
3434
})
3535
}
36-
return (event, context, callback) => {
36+
return function (event, context) {
37+
const callback = arguments[2] // https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/137
3738
currentAwsArguments.event = event
3839
currentAwsArguments.context = context
3940
if (options.callbackWaitsForEmptyEventLoop !== undefined) {

0 commit comments

Comments
 (0)