mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Ensure we actually do give them a boolean.
This commit is contained in:
@@ -382,7 +382,9 @@ export default class GitRepositoryAsync {
|
||||
// Returns a {Promise} which resolves to a {Boolean} that's true if the `path`
|
||||
// is ignored.
|
||||
isPathIgnored (_path) {
|
||||
return this.repoPromise.then(repo => Git.Ignore.pathIsIgnored(repo, _path))
|
||||
return this.repoPromise
|
||||
.then(repo => Git.Ignore.pathIsIgnored(repo, _path))
|
||||
.then(ignored => Boolean(ignored))
|
||||
}
|
||||
|
||||
// Get the status of a directory in the repository's working directory.
|
||||
|
||||
Reference in New Issue
Block a user