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 RafaelGSS committed Sep 17, 2024
1 parent 097f6d3 commit dc5593b
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 dc5593b

Please sign in to comment.