Skip to content

Commit

Permalink
fix: follow abstract-blob-store interface for exists calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 5, 2016
1 parent 7161bf9 commit 6abd0f5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@ function Repo (repoPath, options) {
.setUp(repoPath, options.stores.locks)

this.exists = (callback) => {
this.version.exists((err, exists) => {
if (err) {
callback(new Error('repo does not exist'), false)
} else {
callback(null, exists)
}
})
this.version.exists(callback)
}

this.version = stores
Expand Down

0 comments on commit 6abd0f5

Please sign in to comment.