packages/plugin-aws-lambda/src/index.js
Function wrapHandler
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wrapHandler (client, flushTimeoutMs, lambdaTimeoutNotifyMs, handler) {
let _handler = handler
if (handler.length > 2) {
// This is a handler expecting a 'callback' argument, so we convert