diff --git a/lib/main.js b/lib/main.js index 17e6b671..a337553a 100644 --- a/lib/main.js +++ b/lib/main.js @@ -672,9 +672,7 @@ they may not work as expected in the Lambda environment. }) } return Promise.resolve() - })).then((data) => { - return data - }) + })) } _updateScheduleEvents (scheduleEvents, functionArn, scheduleList) { @@ -836,9 +834,7 @@ they may not work as expected in the Lambda environment. program, params.FunctionName ) - ]).then((results) => { - return results - }) + ]) }) }).catch(() => { // Function does not exist @@ -868,9 +864,7 @@ they may not work as expected in the Lambda environment. program, params.FunctionName ) - ]).then((results) => { - return results - }) + ]) }) }) })