update linting

This commit is contained in:
ssmith2 2018-06-19 18:07:07 -05:00
parent 3267a7b4ac
commit 13da35f7dd

View File

@ -127,7 +127,9 @@ class Create {
});
} else if ('template-path' in this.options) {
// Copying template from a local directory
const servicePath = this.options.path ? untildify(this.options.path) : path.join(process.cwd(), this.options.name);
const servicePath = this.options.path
? untildify(this.options.path)
: path.join(process.cwd(), this.options.name);
if (dirExistsSync(servicePath)) {
const errorMessage = `A folder named "${servicePath}" already exists.`;
throw new ServerlessError(errorMessage);