From 9064a77148774533a6b259890ae05285319d60c7 Mon Sep 17 00:00:00 2001 From: Kamil Burzynski Date: Wed, 10 Feb 2016 09:23:37 +0100 Subject: [PATCH] Updated unnecessary getProject() with hasProject() --- lib/actions/ProjectInit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/ProjectInit.js b/lib/actions/ProjectInit.js index 7173c36d5..260594939 100644 --- a/lib/actions/ProjectInit.js +++ b/lib/actions/ProjectInit.js @@ -145,7 +145,7 @@ module.exports = function(SPlugin, serverlessPath) { if (_this.evt.options.name) isName = true; // Check if project exists - if (_this.S.getProject()) { + if (_this.S.hasProject()) { // Set temp name name = _this.evt.options.name ? _this.evt.options.name : (_this.S.getProject().getName() + '-' + SUtils.generateShortId(6)).toLowerCase(); } else {