Skip to content

Commit fc37b80

Browse files
jakecastellijazelly
authored andcommittedOct 2, 2024
lib: remove unnecessary async
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>
1 parent 8048c2e commit fc37b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/internal/webstreams/adapters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function newWritableStreamFromStreamWritable(streamWritable) {
176176
return new WritableStream({
177177
start(c) { controller = c; },
178178

179-
async write(chunk) {
179+
write(chunk) {
180180
if (streamWritable.writableNeedDrain || !streamWritable.write(chunk)) {
181181
backpressurePromise = createDeferredPromise();
182182
return SafePromisePrototypeFinally(

0 commit comments

Comments
 (0)
Please sign in to comment.