numo-labs / aws-lambda-helper

:lollipop: Collection of helper methods for lambda
GNU General Public License v3.0
22 stars 2 forks source link

Conditional assignment of context/config objects always throws error #7

Closed nelsonic closed 8 years ago

nelsonic commented 8 years ago

The code in the re-written class (with conditional assignment of context or config will *always throw error because invokedFunctionArn will be invalid by definition. see: https://github.com/tcdl/aws-lambda-helper/blob/d692d49dd2003ad4eb6a8fe911705e6c67888ca0/lib/index.js#L18-L20

So not setting the context/config will always result in throwing an error. So... should we even have the conditional assignment of an empty context?

nelsonic commented 8 years ago

This is no longer an issue in the latest version. https://github.com/numo-labs/aws-lambda-helper/blob/7c1f5d64155795b7975d340ae8dd81e2b1e134c9/lib/index.js#L20