Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 9fdf5b0

Browse files
committed
Promisify ipfs.files.get.
1 parent 76bf64d commit 9fdf5b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/ipfs/files.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ module.exports = function files (self) {
120120
})
121121
}),
122122

123-
get: (hash, callback) => {
123+
get: promisify((hash, callback) => {
124124
var exportFile = Exporter(hash, self._dagS)
125125
callback(null, exportFile)
126-
}
126+
})
127127
}
128128
}

0 commit comments

Comments
 (0)