From 9fdf5b01ac5f796c07f59aa343dbc5215c8fb6f9 Mon Sep 17 00:00:00 2001 From: Stephen Whitmore Date: Tue, 7 Jun 2016 17:06:31 -0700 Subject: [PATCH] Promisify ipfs.files.get. --- src/core/ipfs/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ipfs/files.js b/src/core/ipfs/files.js index 0184147d57..4a11cef890 100644 --- a/src/core/ipfs/files.js +++ b/src/core/ipfs/files.js @@ -120,9 +120,9 @@ module.exports = function files (self) { }) }), - get: (hash, callback) => { + get: promisify((hash, callback) => { var exportFile = Exporter(hash, self._dagS) callback(null, exportFile) - } + }) } }