summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-07 06:10:05 +0200
committerGitHub <noreply@github.com>2023-04-07 13:10:05 +0900
commit5d9172467eee8cdceefa944199459ddd410f7388 (patch)
treee82092a186f7ed878142ba1e1cc5d9d0083a20ef
parent5c7f76c570bc099c4e60b38443194c1890808a7f (diff)
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
-rw-r--r--ext/node/polyfills/http.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index dd92a9744..ab5e2b438 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 {