From dd29572bb1d8c7bd367ab371827207ca7fac370c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 20 Jan 2021 18:06:39 -0500 Subject: [PATCH] Fix lint --- structures/pokemon/Pokemon.js | 2 +- structures/pokemon/PokemonStore.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/structures/pokemon/Pokemon.js b/structures/pokemon/Pokemon.js index 1688421e..537fd0b0 100644 --- a/structures/pokemon/Pokemon.js +++ b/structures/pokemon/Pokemon.js @@ -145,7 +145,7 @@ module.exports = class Pokemon { async fetchSmogonTiers(gen) { if (!this.store.smogonData[gen.toLowerCase()]) await this.store.fetchSmogonData(gen.toLowerCase()); - const pkmn = this.store.smogonData[gen.toLowerCase()].find(pkmn => pkmn.id === this.id); + const pkmn = this.store.smogonData[gen.toLowerCase()].find(data => data.id === this.id); this.smogonTiers[gen.toLowerCase()] = pkmn.formats; return this.smogonTiers[gen.toLowerCase()]; } diff --git a/structures/pokemon/PokemonStore.js b/structures/pokemon/PokemonStore.js index 42334a25..e2a53366 100644 --- a/structures/pokemon/PokemonStore.js +++ b/structures/pokemon/PokemonStore.js @@ -42,6 +42,7 @@ module.exports = class PokemonStore extends Collection { .injectRpcs[1][1] .pokemon .map(pkmn => ({ id: pkmn.oob.dex_number, formats: pkmn.formats })); + return this.smogonData[gen.toLowerCase()]; } makeSlug(query) {