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

Commit 2483ba1

Browse files
committed
clean the cat
1 parent f38951c commit 2483ba1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"aegir": "^3.2.0",
3434
"chai": "^3.5.0",
3535
"gulp": "^3.9.1",
36-
"interface-ipfs-core": "^0.2.2",
36+
"interface-ipfs-core": "^0.3.0",
3737
"ipfsd-ctl": "^0.14.0",
3838
"pre-commit": "^1.1.2",
3939
"stream-equal": "^0.1.8",

src/api/cat.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ module.exports = (send) => {
1111
} catch (err) {
1212
return callback(err)
1313
}
14-
send('cat', multihash, null, null, function (err, result) {
15-
if (err) {
16-
return callback(err)
17-
}
18-
return callback(null, result)
19-
})
14+
send('cat', multihash, null, null, callback)
2015
})
2116
return cat
2217
}

0 commit comments

Comments
 (0)