From 7fc4e20807a730ea22a0d6a880bd34702c7794bc Mon Sep 17 00:00:00 2001 From: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 29 May 2025 05:37:26 +0000 Subject: [PATCH] `bun run prettier` --- src/js/node/_http_client.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/js/node/_http_client.ts b/src/js/node/_http_client.ts index d862d494ae..52828a0549 100644 --- a/src/js/node/_http_client.ts +++ b/src/js/node/_http_client.ts @@ -481,11 +481,7 @@ function ClientRequest(input, options, cb) { if (!this.hasHeader("Host")) { let hostHeader = host; const posColon = hostHeader.indexOf(":"); - if ( - posColon !== -1 && - hostHeader.includes(":", posColon + 1) && - hostHeader.charCodeAt(0) !== 91 /* '[' */ - ) { + if (posColon !== -1 && hostHeader.includes(":", posColon + 1) && hostHeader.charCodeAt(0) !== 91 /* '[' */) { hostHeader = `[${hostHeader}]`; } this.setHeader("Host", `${hostHeader}:${port}`); @@ -522,11 +518,7 @@ function ClientRequest(input, options, cb) { if (!this.hasHeader("Host")) { let hostHeader = host; const posColon = hostHeader.indexOf(":"); - if ( - posColon !== -1 && - hostHeader.includes(":", posColon + 1) && - hostHeader.charCodeAt(0) !== 91 /* '[' */ - ) { + if (posColon !== -1 && hostHeader.includes(":", posColon + 1) && hostHeader.charCodeAt(0) !== 91 /* '[' */) { hostHeader = `[${hostHeader}]`; } this.setHeader("Host", `${hostHeader}:${port}`);