Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/streams/pipeline.js')
-rw-r--r--lib/internal/streams/pipeline.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/internal/streams/pipeline.js b/lib/internal/streams/pipeline.js
index cf9d7868916..4786b906f43 100644
--- a/lib/internal/streams/pipeline.js
+++ b/lib/internal/streams/pipeline.js
@@ -107,10 +107,9 @@ function makeAsyncIterable(val) {
} else if (isReadable(val)) {
// Legacy streams are not Iterable.
return fromReadable(val);
- } else {
- throw new ERR_INVALID_ARG_TYPE(
- 'val', ['Readable', 'Iterable', 'AsyncIterable'], val);
}
+ throw new ERR_INVALID_ARG_TYPE(
+ 'val', ['Readable', 'Iterable', 'AsyncIterable'], val);
}
async function* fromReadable(val) {