mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
be more concise, again
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user