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

Commit 335c13d

Browse files
authored
fix: set error code correctly (#3150)
Fixes a typo
1 parent c9700f7 commit 335c13d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const globalThis = require('ipfs-utils/src/globalthis')
4949
module.exports = function normaliseInput (input) {
5050
// must give us something
5151
if (input === null || input === undefined) {
52-
throw errCode(new Error(`Unexpected input: ${input}`, 'ERR_UNEXPECTED_INPUT'))
52+
throw errCode(new Error(`Unexpected input: ${input}`), 'ERR_UNEXPECTED_INPUT')
5353
}
5454

5555
// String

0 commit comments

Comments
 (0)