Rename local variable

/xref: https://github.com/atom/atom/pull/15898#discussion_r144850427
This commit is contained in:
Jason Rudolph
2017-10-16 11:04:56 -04:00
parent 5ec9d0f134
commit a4ea46c57e

View File

@@ -346,9 +346,9 @@ class Project extends Model {
}
})
for (let path in this.watcherPromisesByPath) {
if (!this.rootDirectories.find(dir => dir.getPath() === path)) {
this.watcherPromisesByPath[path].then(watcher => { watcher.dispose() })
for (let watchedPath in this.watcherPromisesByPath) {
if (!this.rootDirectories.find(dir => dir.getPath() === watchedPath)) {
this.watcherPromisesByPath[watchedPath].then(watcher => { watcher.dispose() })
}
}