aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-02 16:59:56 -0500
committermat <github@matdoes.dev>2022-06-02 16:59:56 -0500
commitc8ed21fcdfea3d976439429a9d30e45a330b688e (patch)
treed558c2e18fc14c94cd66f1fd008b3db13930f8d1
parentaa76500cf0c3c6938a7b268a69a1c7cb67996186 (diff)
downloadskyblock-api-c8ed21fcdfea3d976439429a9d30e45a330b688e.tar.gz
skyblock-api-c8ed21fcdfea3d976439429a9d30e45a330b688e.tar.bz2
skyblock-api-c8ed21fcdfea3d976439429a9d30e45a330b688e.zip
Replace some `let`s with `const`s
-rw-r--r--src/cleaners/achievements.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts
index 8410d4e..367e14a 100644
--- a/src/cleaners/achievements.ts
+++ b/src/cleaners/achievements.ts
@@ -37,7 +37,7 @@ export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataRe
if (gameId !== 'skyblock') continue
- let tieredAchievements: TieredAchievement[] = []
+ const tieredAchievements: TieredAchievement[] = []
for (const [achievementId, achievementData] of Object.entries(achievementsData.tiered)) {
const amount = data.achievements[`skyblock_${achievementId.toLowerCase()}`] ?? 0
@@ -61,8 +61,8 @@ export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataRe
}
tieredAchievements.sort((a, b) => (b.amount ?? 0) - (a.amount ?? 0))
- let unlockedChallengeAchievements: ChallengeAchievement[] = []
- let lockedChallengeAchievements: ChallengeAchievement[] = []
+ const unlockedChallengeAchievements: ChallengeAchievement[] = []
+ const lockedChallengeAchievements: ChallengeAchievement[] = []
for (const [achievementId, achievementData] of Object.entries(achievementsData.one_time)) {
const achievement: ChallengeAchievement = {