mirror of
https://github.com/serverless/serverless.git
synced 2026-02-01 16:07:28 +00:00
Updated unnecessary getProject() with hasProject()
This commit is contained in:
parent
e570f077e2
commit
9064a77148
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user