From 21d7d0c9be5f7f61a5d8f27a7a186f9a823911d2 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Wed, 28 Jan 2026 18:59:00 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Improve=20readability=20of=20getPok?= =?UTF-8?q?emonById=20method=20by=20adjusting=20return=20statement=20forma?= =?UTF-8?q?tting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pokedex.online/src/utilities/gamemaster-client.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/websites/pokedex.online/src/utilities/gamemaster-client.js b/code/websites/pokedex.online/src/utilities/gamemaster-client.js index f87b45a..1c81a3c 100644 --- a/code/websites/pokedex.online/src/utilities/gamemaster-client.js +++ b/code/websites/pokedex.online/src/utilities/gamemaster-client.js @@ -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 + ); } /**