From 5964a610294f2b9c69aa1b1b87c062cb4cd73b0d Mon Sep 17 00:00:00 2001 From: Lxxyx Date: Sun, 24 Jan 2021 14:49:58 +0800 Subject: [PATCH] Update lib/internal/streams/end-of-stream.js Co-authored-by: Antoine du Hamel --- lib/internal/streams/end-of-stream.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/internal/streams/end-of-stream.js b/lib/internal/streams/end-of-stream.js index 9dfaa74e5747da..b75961e29a794d 100644 --- a/lib/internal/streams/end-of-stream.js +++ b/lib/internal/streams/end-of-stream.js @@ -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); }