From d8be127a581c50708cce7a78a9e44d39214a8d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Sun, 23 Jul 2017 08:27:41 +0900 Subject: [PATCH] object patch add-link: don't force to have a Buffer for 'ref' (#578) * object patch add-link: don't force to have a Buffer for 'ref' * remove non used var https://travis-ci.org/ipfs/js-ipfs-api/jobs/253549628#L3366 --- src/object/addLink.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/object/addLink.js b/src/object/addLink.js index 75bb337f4..3659f46f4 100644 --- a/src/object/addLink.js +++ b/src/object/addLink.js @@ -1,7 +1,6 @@ 'use strict' const promisify = require('promisify-es6') -const bs58 = require('bs58') const cleanMultihash = require('../utils/clean-multihash') module.exports = (send) => { @@ -27,7 +26,7 @@ module.exports = (send) => { args: [ multihash, dLink.name, - bs58.encode(dLink.multihash).toString() + cleanMultihash(dLink.multihash) ] }, (err, result) => { if (err) {