From e69cdbbd6a0412c6b3409aae271dee1170c8c38c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 20 Jul 2021 12:42:11 -0700 Subject: [PATCH] stream: call done() in consistent fashion All three `destroy()` functions defined in adapter.js contain a `done()` function that takes no arguments. In one instance, however, an argument is nonetheless passed. Remove it for consistency. --- lib/internal/webstreams/adapters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/webstreams/adapters.js b/lib/internal/webstreams/adapters.js index a52957f0df296c..1c251a830726ba 100644 --- a/lib/internal/webstreams/adapters.js +++ b/lib/internal/webstreams/adapters.js @@ -491,7 +491,7 @@ function newStreamReadableFromReadableStream(readableStream, options = {}) { done); return; } - done(error); + done(); }, });