Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWells committed Nov 27, 2016
1 parent b654677 commit da5d0a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aws-node-recursive-function/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports.recursiveLambda = (event, context, callback) => {
/* if numberOfCalls still has value, continue recursive operation */
if (event.numberOfCalls > 0) {
console.log('recursive call');
/* decrement numberOfCalls so we don't infinitely loop */
event.numberOfCalls = event.numberOfCalls - 1;
const params = {
FunctionName: context.functionName,
Expand Down

0 comments on commit da5d0a6

Please sign in to comment.