be more concise, again

This commit is contained in:
Daniel Hengeveld
2016-01-12 15:54:28 -05:00
parent a9f9cd5b8f
commit a35b2c94d0

View File

@@ -161,11 +161,7 @@ export default class GitRepositoryAsync {
// Returns a {Promise} which resolves to the relative {String} path.
relativizeToWorkingDirectory (_path) {
return this.getRepo()
.then((repo) => {
let workingDirectory = repo.workdir()
return this.relativize(_path, workingDirectory)
}
)
.then(repo => this.relativize(_path, repo.workdir()))
}
// Public: Makes a path relative to the repository's working directory.