From 7e6f4483d320b469ba2e22874ee4a686efc5ce9a Mon Sep 17 00:00:00 2001 From: Dieter Reinert Date: Sun, 8 Dec 2024 14:47:18 +0100 Subject: [PATCH] fix: correct indentation to comply with @typescript-eslint/indent rule - Replaced spaces with tabs in server/chat-plugins/seasons.ts. - Resolved eslint errors related to indentation. --- server/chat-plugins/seasons.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/server/chat-plugins/seasons.ts b/server/chat-plugins/seasons.ts index ed23e9bb1fc5..1a4bdf4a7a6d 100644 --- a/server/chat-plugins/seasons.ts +++ b/server/chat-plugins/seasons.ts @@ -143,20 +143,20 @@ export function generateFormatSchedule() { } export async function getLadderTop(format: string) { - try { - const results = await Net(`https://${Config.routes.root}/ladder/?format=${toID(format)}&json`).get(); - let reply; - try { - reply = JSON.parse(results); - } catch (parseError) { - Monitor.crashlog(parseError, "Invalid JSON response from ladder request"); - return null; - } - return reply.toplist; - } catch (e) { - Monitor.crashlog(e, "A season ladder request"); - return null; - } + try { + const results = await Net(`https://${Config.routes.root}/ladder/?format=${toID(format)}&json`).get(); + let reply; + try { + reply = JSON.parse(results); + } catch (parseError) { + Monitor.crashlog(parseError, "Invalid JSON response from ladder request"); + return null; + } + return reply.toplist; + } catch (e) { + Monitor.crashlog(e, "A season ladder request"); + return null; + } } export async function updateBadgeholders() {