Skip to content

Commit dc5593b

Browse files
jakecastellijazelly
authored andcommitted
lib: remove unnecessary async
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]>
1 parent 097f6d3 commit dc5593b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/webstreams/adapters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function newWritableStreamFromStreamWritable(streamWritable) {
211211
return new WritableStream({
212212
start(c) { controller = c; },
213213

214-
async write(chunk) {
214+
write(chunk) {
215215
if (streamWritable.writableNeedDrain || !streamWritable.write(chunk)) {
216216
backpressurePromise = createDeferredPromise();
217217
return SafePromisePrototypeFinally(

0 commit comments

Comments
 (0)