Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit d8be127

Browse files
MichaelMuredaviddias
authored andcommitted
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
1 parent 46cb18b commit d8be127

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/object/addLink.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22

33
const promisify = require('promisify-es6')
4-
const bs58 = require('bs58')
54
const cleanMultihash = require('../utils/clean-multihash')
65

76
module.exports = (send) => {
@@ -27,7 +26,7 @@ module.exports = (send) => {
2726
args: [
2827
multihash,
2928
dLink.name,
30-
bs58.encode(dLink.multihash).toString()
29+
cleanMultihash(dLink.multihash)
3130
]
3231
}, (err, result) => {
3332
if (err) {

0 commit comments

Comments
 (0)