Skip to content

Commit

Permalink
corrects un-finished comment noted by @nikhilaravi dwyl/learn-aws-lam…
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Mar 4, 2016
1 parent 3a62498 commit f3286c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/lambda_invoke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ exports.handler = function(event, context) {
LogType: 'Tail',
Payload: '{ "name" : "Alex" }'
};
console.log(params);
console.log(' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -');

function invokeFunction() {
lambda.invoke(params, function(err, data) {
Expand All @@ -87,7 +85,7 @@ exports.handler = function(event, context) {
}
})
}
// first check that the
// check that the Lambda Function you want to invoke exists before invoking
lambda.getFunction({ FunctionName: params.FunctionName }, function(err, data) {
if (err) {
context.fail(params.FunctionName + 'FUNCTION NOT FOUND', err);
Expand Down

0 comments on commit f3286c7

Please sign in to comment.