fix: resolve lint warnings - remove unused imports and fix type annotations

This commit is contained in:
2026-04-29 01:47:11 +08:00
parent 7903c9fbbd
commit 133a4a9cc2
2 changed files with 3 additions and 18 deletions
+2 -2
View File
@@ -197,8 +197,8 @@ export const gamesListingRoutes = new Elysia({ prefix: "/games/listing" }).get(
// If sorting by benchmarks, re-sort the enriched data
if (sort === "benchmarks") {
const sortFn = query.order === "asc"
? (a: any, b: any) => a.benchmarkCount - b.benchmarkCount
: (a: any, b: any) => b.benchmarkCount - a.benchmarkCount
? (a: { benchmarkCount: number }, b: { benchmarkCount: number }) => a.benchmarkCount - b.benchmarkCount
: (a: { benchmarkCount: number }, b: { benchmarkCount: number }) => b.benchmarkCount - a.benchmarkCount
enrichedData.sort(sortFn)
}