mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
@@ -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()];
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user