Skip to content

Commit dc2f813

Browse files
committed
Merge pull request #59 from ipfs/fix/repo-exist
fix: follow abstract-blob-store interface for exists calls
2 parents 7161bf9 + 6abd0f5 commit dc2f813

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,7 @@ function Repo (repoPath, options) {
3030
.setUp(repoPath, options.stores.locks)
3131

3232
this.exists = (callback) => {
33-
this.version.exists((err, exists) => {
34-
if (err) {
35-
callback(new Error('repo does not exist'), false)
36-
} else {
37-
callback(null, exists)
38-
}
39-
})
33+
this.version.exists(callback)
4034
}
4135

4236
this.version = stores

0 commit comments

Comments
 (0)