From fc37b801c899e962f76ed08c3fc60bb3dbaf630a Mon Sep 17 00:00:00 2001 From: jakecastelli <38635403+jakecastelli@users.noreply.github.com> Date: Sun, 15 Sep 2024 00:01:29 +0930 Subject: [PATCH] lib: remove unnecessary async Co-authored-by: Jason Zhang PR-URL: https://github.com/nodejs/node/pull/54829 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Michael Dawson --- 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 a57043921dc957..d09150c1590969 100644 --- a/lib/internal/webstreams/adapters.js +++ b/lib/internal/webstreams/adapters.js @@ -176,7 +176,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(