✨ Improve readability of getPokemonById method by adjusting return statement formatting
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user