From 2c00e70c989943e57683088a6b91c4ff8a56f061 Mon Sep 17 00:00:00 2001 From: Varun V Date: Mon, 4 Jan 2016 18:48:29 +0530 Subject: [PATCH] When deploy_arn is not defined in the Gruntfile the value is undefined --- tasks/lambda_deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lambda_deploy.js b/tasks/lambda_deploy.js index c8fcf6f..f998a24 100644 --- a/tasks/lambda_deploy.js +++ b/tasks/lambda_deploy.js @@ -65,7 +65,7 @@ module.exports = function (grunt) { grunt.fail.warn('You must specify either an arn or a function name.'); } - if(deploy_arn !== null) { + if(deploy_arn) { deploy_function = deploy_arn; var functionInfo = arnParser.parse(deploy_arn); if (functionInfo && functionInfo.region) {