Skip to content

Commit

Permalink
fix: correct indentation to comply with @typescript-eslint/indent rule
Browse files Browse the repository at this point in the history
- Replaced spaces with tabs in server/chat-plugins/seasons.ts.
- Resolved eslint errors related to indentation.
  • Loading branch information
DieterReinert authored Dec 8, 2024
1 parent d76dcfa commit 7e6f448
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions server/chat-plugins/seasons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7e6f448

Please sign in to comment.