Skip to content

Commit

Permalink
fix: fix error code param
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Mar 26, 2020
1 parent 7714c66 commit dd73a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files/normalise-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ const globalThis = require('../globalthis')
* AsyncIterable<{ path, content: AsyncIterable<Buffer> }>
* ```
*
* @param input Object
* @param {Object} input
* @return AsyncInterable<{ path, content: AsyncIterable<Buffer> }>
*/
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
Expand Down

0 comments on commit dd73a33

Please sign in to comment.