Skip to content

Commit 9435225

Browse files
committed
lint
1 parent 2ef4906 commit 9435225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

state.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ module.exports = class State {
166166
this.env.NODE_ENV = this.env.NODE_ENV || 'production'
167167
}
168168
this.constructor.injestPackage(this, pkg, { links })
169-
const invalidStorage = this.key === null && this.storage !== null
170-
&& this.storage.startsWith(this.dir) && this.storage.includes(path.sep + 'pear' + path.sep + 'pear' + path.sep) === false
169+
const invalidStorage = this.key === null && this.storage !== null &&
170+
this.storage.startsWith(this.dir) && this.storage.includes(path.sep + 'pear' + path.sep + 'pear' + path.sep) === false
171171
if (invalidStorage) throw ERR_INVALID_APP_STORAGE('Application Storage may not be inside the project directory. --store "' + this.storage + '" is invalid')
172172
const invalidName = /^[@/a-z0-9-_]+$/.test(this.name) === false
173173
if (invalidName) throw ERR_INVALID_APP_NAME('The package.json name / pear.name field must be lowercase and one word, and may contain letters, numbers, hyphens (-), underscores (_), forward slashes (/) and asperands (@).')

0 commit comments

Comments
 (0)