From 5d9172467eee8cdceefa944199459ddd410f7388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 7 Apr 2023 06:10:05 +0200 Subject: [PATCH] refactor(ext/node): remove conditional in ServerResponse#enqueue (#18617) It's superfluous, the issue linked is no longer relevant. Closes https://github.com/denoland/deno/issues/18579 --- ext/node/polyfills/http.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts index dd92a97447..ab5e2b438f 100644 --- a/ext/node/polyfills/http.ts +++ b/ext/node/polyfills/http.ts @@ -409,11 +409,6 @@ export class ServerResponse extends NodeWritable { #reqEvent?: Deno.RequestEvent; static #enqueue(controller: ReadableStreamDefaultController, chunk: Chunk) { - // TODO(kt3k): This is a workaround for denoland/deno#17194 - // This if-block should be removed when the above issue is resolved. - if (chunk.length === 0) { - return; - } if (typeof chunk === "string") { controller.enqueue(ENCODER.encode(chunk)); } else {