Merge pull request #11201 from atom/bf-async-await

Remove an unnecessary call to then().
This commit is contained in:
Josh Abernathy
2016-03-18 13:29:11 -04:00

View File

@@ -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