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

Commit d3e6189

Browse files
committed
chore: fix tests
1 parent 43e308e commit d3e6189

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/ipfs-core-utils/src/files/normalise-input/normalise-input.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ const {
2727
*/
2828
// eslint-disable-next-line complexity
2929
module.exports = async function * normaliseInput (input, normaliseContent) {
30-
// must give us something
3130
if (input === null || input === undefined) {
32-
throw errCode(new Error(`Unexpected input: ${input}`), 'ERR_UNEXPECTED_INPUT')
31+
return []
3332
}
3433

3534
// String

packages/ipfs-http-client/src/lib/multipart-request.node.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ async function multipartRequest (source, abortController, headers = {}, boundary
6969

7070
index++
7171
}
72-
} catch (err) {
72+
} catch {
7373
// workaround for https://github.com/node-fetch/node-fetch/issues/753
74-
// @ts-ignore - abort does not expect an arguments
75-
abortController.abort(err)
74+
abortController.abort()
7675
} finally {
7776
yield `\r\n--${boundary}--\r\n`
7877
}

0 commit comments

Comments
 (0)