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 <[email protected]>
PR-URL: #54829
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
2 people authored and RafaelGSS committed Sep 16, 2024
1 parent 679d109 commit 23667eb
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 @@ -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(
Expand Down

0 comments on commit 23667eb

Please sign in to comment.