Skip to content

Commit 442b2cf

Browse files
committed
fix: add async label to async functions
1 parent 85c9214 commit 442b2cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/blockstore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function createBaseStore (store) {
153153
*
154154
* @returns {Promise<void>}
155155
*/
156-
close () {
156+
async close () {
157157
return store.close()
158158
}
159159
}

src/spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = (store) => {
1212
*
1313
* @returns {Promise<bool>}
1414
*/
15-
exists () {
15+
async exists () {
1616
return store.has(specKey)
1717
},
1818
/**
@@ -30,7 +30,7 @@ module.exports = (store) => {
3030
* @param {number} spec
3131
* @returns {Promise<void>}
3232
*/
33-
set (spec) {
33+
async set (spec) {
3434
return store.put(specKey, Buffer.from(JSON.stringify(sortKeys(spec, { deep: true }))))
3535
}
3636
}

0 commit comments

Comments
 (0)