From d59e87556ea33a21d118ad26ea8b9921b7838815 Mon Sep 17 00:00:00 2001 From: Enrico Marino Date: Thu, 25 May 2017 17:29:25 +0200 Subject: [PATCH] Remove promisify (since already promisified) --- examples/basics/index-es6.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/basics/index-es6.js b/examples/basics/index-es6.js index 4a1bbd6946..8d4c6e2554 100644 --- a/examples/basics/index-es6.js +++ b/examples/basics/index-es6.js @@ -3,7 +3,6 @@ const fs = require('fs') const os = require('os') const path = require('path') -const promisify = require('promisify-es6') // const IPFS = require('../../src/core') // replace this by line below if you are using ipfs as a dependency of your // project @@ -39,16 +38,14 @@ node.version() * Initialize the repo for this node */ .then(() => { - // we need to promisify node.init to return a promise - return promisify(node.init)({ emptyRepo: true, bits: 2048 }) + return node.init({ emptyRepo: true, bits: 2048 }) }) /* * Take the node online (bitswap, network and so on) */ .then(() => { - // we need to promisify node.start to return a promise - return promisify(node.start)() + return node.start() }) /*