From 1a29d7c61d02ca60706241cf2c4f864060c16346 Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Fri, 8 Aug 2025 02:24:07 -0400 Subject: [PATCH] Remove redundant strings --- .../worker/websocket/handler/message/PreJoinHandler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/worker/websocket/handler/message/PreJoinHandler.ts b/src/server/worker/websocket/handler/message/PreJoinHandler.ts index 1d09f4529..723395f6f 100644 --- a/src/server/worker/websocket/handler/message/PreJoinHandler.ts +++ b/src/server/worker/websocket/handler/message/PreJoinHandler.ts @@ -134,7 +134,7 @@ async function handleJoinMessage( if (result === false) { return { code: 1002, - description: "Unauthorized: Invalid token", + description: "Invalid token", reason: "Unauthorized", success: false, }; @@ -149,7 +149,7 @@ async function handleJoinMessage( if (allowedFlares !== undefined) { return { code: 1002, - description: "Unauthorized: Anonymous user attempted to join game", + description: "Anonymous user attempted to join game", reason: "Unauthorized", success: false, }; @@ -160,7 +160,7 @@ async function handleJoinMessage( if (result === false) { return { code: 1002, - description: "Unauthorized: Anonymous user attempted to join game", + description: "Anonymous user attempted to join game", reason: "Unauthorized", success: false, }; @@ -176,7 +176,7 @@ async function handleJoinMessage( return { code: 1002, description: - "Forbidden: player without an allowed flare attempted to join game", + "player without an allowed flare attempted to join game", reason: "Forbidden", success: false, };