Skip to content

Commit

Permalink
Merge pull request #59 from ipfs/fix/repo-exist
Browse files Browse the repository at this point in the history
fix: follow abstract-blob-store interface for exists calls
  • Loading branch information
daviddias committed May 5, 2016
2 parents 7161bf9 + 6abd0f5 commit dc2f813
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 dc2f813

Please sign in to comment.