Skip to content

Commit

Permalink
Update lib/internal/streams/end-of-stream.js
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
Lxxyx and aduh95 committed Jan 24, 2021
1 parent af07820 commit 5964a61
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/internal/streams/end-of-stream.js
Expand Up @@ -71,7 +71,6 @@ function eos(stream, options, callback) {
} else {
validateObject(options, 'options');
}

if (typeof callback !== 'function') {
throw new ERR_INVALID_ARG_TYPE('callback', 'function', callback);
}
Expand Down

0 comments on commit 5964a61

Please sign in to comment.