From b234f8481ddc9ff218f48ddc70a086830b6d5771 Mon Sep 17 00:00:00 2001 From: joshaber Date: Mon, 4 Jan 2016 16:12:22 -0500 Subject: [PATCH] We don't actually use `repo`. --- spec/git-repository-async-spec.js | 3 +-- src/git-repository-async.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/git-repository-async-spec.js b/spec/git-repository-async-spec.js index e40c0a114..bbaa7ef75 100644 --- a/spec/git-repository-async-spec.js +++ b/spec/git-repository-async-spec.js @@ -31,7 +31,7 @@ describe('GitRepositoryAsync', () => { }) describe('@open(path)', () => { - it('repo is null when no repository is found', async () => { + it('should throw when no repository is found', async () => { repo = GitRepositoryAsync.open(path.join(temp.dir, 'nogit.txt')) let threw = false @@ -42,7 +42,6 @@ describe('GitRepositoryAsync', () => { } expect(threw).toBe(true) - expect(repo.repo).toBe(null) }) }) diff --git a/src/git-repository-async.js b/src/git-repository-async.js index 95bb407d8..035af9945 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -30,7 +30,6 @@ export default class GitRepositoryAsync { } constructor (_path, options = {}) { - this.repo = null this.emitter = new Emitter() this.subscriptions = new CompositeDisposable() this.pathStatusCache = {}