Improve readability of getPokemonById method by adjusting return statement formatting

This commit is contained in:
2026-01-28 18:59:00 +00:00
parent 5bcff917ef
commit 21d7d0c9be

View File

@@ -169,7 +169,10 @@ export class GamemasterClient {
*/
async getPokemonById(pokemonId) {
const pokemon = await this.getPokemon({ useCache: true });
return pokemon.find(p => p.data?.pokemonSettings?.pokemonId === pokemonId) || null;
return (
pokemon.find(p => p.data?.pokemonSettings?.pokemonId === pokemonId) ||
null
);
}
/**