Skip to content

Commit

Permalink
lib: remove unnecessary async
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Zhang <xzha4350@gmail.com>
PR-URL: #54829
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
2 people authored and targos committed Oct 2, 2024
1 parent 1a0837d commit c40bc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/webstreams/adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c40bc45

Please sign in to comment.