Updated unnecessary getProject() with hasProject()

This commit is contained in:
Kamil Burzynski 2016-02-10 09:23:37 +01:00
parent e570f077e2
commit 9064a77148

View File

@ -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 {