From 3563d0568580150ad65e19de0ccd31d23398dd67 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 31 May 2023 05:35:46 +0000 Subject: [PATCH] Lint Code [skip actions] --- src/handbook/src/backend/server.ts | 3 +-- src/handbook/src/utils.ts | 9 +++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/handbook/src/backend/server.ts b/src/handbook/src/backend/server.ts index 72ac47d19..309ceac97 100644 --- a/src/handbook/src/backend/server.ts +++ b/src/handbook/src/backend/server.ts @@ -66,8 +66,7 @@ export function setTargetPlayer(player: number, token: string | null = null): vo */ export async function setServerDetails(newAddress: string | null, newPort: string | number | null): Promise { if (!getWindowDetails().disable) { - if (typeof newPort == "number") - newPort = newPort.toString(); + if (typeof newPort == "number") newPort = newPort.toString(); // Apply the new details. if (newAddress != null) { diff --git a/src/handbook/src/utils.ts b/src/handbook/src/utils.ts index 26a570497..286c657ea 100644 --- a/src/handbook/src/utils.ts +++ b/src/handbook/src/utils.ts @@ -174,11 +174,8 @@ export function getWindowDetails(): WindowDetails { const { address, port, disable } = details; return { - address: (address as string).includes("DETAILS_ADDRESS") - ? "127.0.0.1" : address, - port: (port as string).includes("DETAILS_PORT") - ? 443 : parseInt(port), - disable: (disable as string).includes("DETAILS_DISABLE") - ? false : disable == "true" + address: (address as string).includes("DETAILS_ADDRESS") ? "127.0.0.1" : address, + port: (port as string).includes("DETAILS_PORT") ? 443 : parseInt(port), + disable: (disable as string).includes("DETAILS_DISABLE") ? false : disable == "true" }; }