Skip to content

Commit

Permalink
fix: add async label to async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zcstarr committed Apr 1, 2019
1 parent 85c9214 commit 442b2cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/blockstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function createBaseStore (store) {
*
* @returns {Promise<void>}
*/
close () {
async close () {
return store.close()
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = (store) => {
*
* @returns {Promise<bool>}
*/
exists () {
async exists () {
return store.has(specKey)
},
/**
Expand All @@ -30,7 +30,7 @@ module.exports = (store) => {
* @param {number} spec
* @returns {Promise<void>}
*/
set (spec) {
async set (spec) {
return store.put(specKey, Buffer.from(JSON.stringify(sortKeys(spec, { deep: true }))))
}
}
Expand Down

0 comments on commit 442b2cf

Please sign in to comment.