mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Merge pull request #11201 from atom/bf-async-await
Remove an unnecessary call to then().
This commit is contained in:
@@ -158,8 +158,7 @@ export default class GitRepositoryAsync {
|
||||
|
||||
if (!this.projectAtRoot) {
|
||||
this.projectAtRoot = this.getRepo()
|
||||
.then(repo => this.project.relativize(repo.workdir()))
|
||||
.then(relativePath => relativePath === '')
|
||||
.then(repo => this.project.relativize(repo.workdir()) === '')
|
||||
}
|
||||
|
||||
return this.projectAtRoot
|
||||
|
||||
Reference in New Issue
Block a user