From 6c8130db548d6bc2cae126ad01332f2c475d780a Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 28 Sep 2025 22:06:58 -0700 Subject: [PATCH] [Misc] Update comment in `src/utils/pokemon-utils.ts` --- src/utils/pokemon-utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/pokemon-utils.ts b/src/utils/pokemon-utils.ts index 60a4d9e0ef7..44a059ff074 100644 --- a/src/utils/pokemon-utils.ts +++ b/src/utils/pokemon-utils.ts @@ -18,7 +18,8 @@ export function getPokemonSpecies(species: SpeciesId | SpeciesId[]): PokemonSpec species = species[Math.floor(Math.random() * species.length)]; } if (species >= 2000) { - return allSpecies.find(s => s.speciesId === species)!; // TODO: is this bang correct? + // the `!` is safe, `allSpecies` is static and contains all `SpeciesId`s + return allSpecies.find(s => s.speciesId === species)!; } return allSpecies[species - 1]; }