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

Commit 8dfefd7

Browse files
authored
Merge pull request #322 from noffle/ipfs-files-get
Promisify ipfs.files.get
2 parents 1b64acb + 9fdf5b0 commit 8dfefd7

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)