mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Avoid inline assignments
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user