Avoid inline assignments

This commit is contained in:
Jason Rudolph
2017-10-14 12:53:11 -04:00
parent 99aaafed1b
commit b2571e8976

View File

@@ -409,8 +409,7 @@ class Project extends Model {
// * `projectPath` {String} The path to remove.
removePath (projectPath) {
// The projectPath may be a URI, in which case it should not be normalized.
let needle
if ((needle = projectPath, !this.getPaths().includes(needle))) {
if (!this.getPaths().includes(projectPath)) {
projectPath = this.defaultDirectoryProvider.normalizePath(projectPath)
}