From de1dd801153bb2f9ea904d4d0108a0febe60c258 Mon Sep 17 00:00:00 2001 From: jakecastelli Date: Sat, 7 Sep 2024 23:59:12 +0930 Subject: [PATCH] lib: remove unnecessary async Co-authored-by: Jason Zhang --- 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 307c3f537ec63c..14f0f65b275b60 100644 --- a/lib/internal/webstreams/adapters.js +++ b/lib/internal/webstreams/adapters.js @@ -211,7 +211,7 @@ function newWritableStreamFromStreamWritable(streamWritable) { return new WritableStream({ start(c) { controller = c; }, - async write(chunk) { + write(chunk) { if (streamWritable.writableNeedDrain || !streamWritable.write(chunk)) { backpressurePromise = createDeferredPromise(); return SafePromisePrototypeFinally(