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>
  • Loading branch information
jakecastelli and jazelly committed Sep 7, 2024
1 parent 8882a21 commit de1dd80
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 de1dd80

Please sign in to comment.