From dd73a3317b7fe4a81cfff5108177fb473cc0ea3d Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Thu, 26 Mar 2020 16:39:21 +0000 Subject: [PATCH] fix: fix error code param --- src/files/normalise-input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files/normalise-input.js b/src/files/normalise-input.js index a0c1249..32c9c11 100644 --- a/src/files/normalise-input.js +++ b/src/files/normalise-input.js @@ -43,13 +43,13 @@ const globalThis = require('../globalthis') * AsyncIterable<{ path, content: AsyncIterable }> * ``` * - * @param input Object + * @param {Object} input * @return AsyncInterable<{ path, content: AsyncIterable }> */ module.exports = function normaliseInput (input) { // must give us something if (input === null || input === undefined) { - throw errCode(new Error(`Unexpected input: ${input}`, 'ERR_UNEXPECTED_INPUT')) + throw errCode(new Error(`Unexpected input: ${input}`), 'ERR_UNEXPECTED_INPUT') } // String