Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: fix up interface tests
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Oct 5, 2019
1 parent 0779b86 commit 62694e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
"execa": "^2.0.4",
"form-data": "^2.5.1",
"hat": "0.0.3",
"interface-ipfs-core": "ipfs/interface-js-ipfs-core#36d393c233e1b8dda3c9fff344cd9c44b705a5f5",
"interface-ipfs-core": "^0.117.2",
"ipfs-interop": "~0.1.0",
"ipfsd-ctl": "^0.47.2",
"libp2p-websocket-star": "~0.10.2",
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function block (self) {
options = options || {}

if (!Array.isArray(cids)) {
cids = []
cids = [cids]
}

// We need to take a write lock here to ensure that adding and removing
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/files-mfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = (/** @type { import("../index") } */ ipfs) => {

if (paths.length) {
const options = args[args.length - 1]
if (options.preload !== false) {
if (options && options.preload !== false) {
paths.forEach(path => ipfs._preload(path))
}
}
Expand Down

0 comments on commit 62694e7

Please sign in to comment.