From 5019cc31ab407022412f579b2382e26d7f2ea48d Mon Sep 17 00:00:00 2001 From: joshaber Date: Tue, 1 Dec 2015 14:16:50 -0500 Subject: [PATCH] These can be const too. --- src/git-repository-async.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git-repository-async.js b/src/git-repository-async.js index fa568edc9..b6ac9c08a 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -78,7 +78,7 @@ module.exports = class GitRepositoryAsync { checkoutHead (_path) { return this.repoPromise .then(repo => { - let checkoutOptions = new Git.CheckoutOptions() + const checkoutOptions = new Git.CheckoutOptions() checkoutOptions.paths = [this.relativize(_path, repo.workdir())] checkoutOptions.checkoutStrategy = Git.Checkout.STRATEGY.FORCE | Git.Checkout.STRATEGY.DISABLE_PATHSPEC_MATCH return Git.Checkout.head(repo, checkoutOptions) @@ -189,8 +189,8 @@ module.exports = class GitRepositoryAsync { subscribeToBuffer (buffer) { const bufferSubscriptions = new CompositeDisposable() - let getBufferPathStatus = () => { - let _path = buffer.getPath() + const getBufferPathStatus = () => { + const _path = buffer.getPath() if (_path) { // We don't need to do anything with this promise, we just want the // emitted event side effect