We don't actually use repo.

This commit is contained in:
joshaber 2016-01-04 16:12:22 -05:00
parent a2ab84c3e6
commit b234f8481d
2 changed files with 1 additions and 3 deletions

View File

@ -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)
})
})

View File

@ -30,7 +30,6 @@ export default class GitRepositoryAsync {
}
constructor (_path, options = {}) {
this.repo = null
this.emitter = new Emitter()
this.subscriptions = new CompositeDisposable()
this.pathStatusCache = {}