Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Aug 26, 2024
1 parent ce3e586 commit 1742d38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions stats/src/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export const Display = new class {
const o = gen.items.get(item);
return (o?.name) ?? item;
}),
teraTypes: toDisplayObject(p.teraTypes, p.raw.weight, teraType => teraType[0].toUpperCase() + teraType.slice(1)),
teraTypes: toDisplayObject(p.teraTypes, p.raw.weight,
teraType => teraType[0].toUpperCase() + teraType.slice(1)),
stats: toDisplayObject(p.stats, p.raw.weight),
moves: toDisplayObject(p.moves, p.raw.weight, move => {
if (move === '') return 'Nothing';
Expand Down Expand Up @@ -242,7 +243,8 @@ export const Display = new class {
const o = gen.items.get(item);
return (o?.name) ?? item;
}),
teraTypes: toDisplayObject(p['Tera Types'], rawWeight, teraType => teraType[0].toUpperCase() + teraType.slice(1)),
teraTypes: toDisplayObject(p['Tera Types'], rawWeight,
teraType => teraType[0].toUpperCase() + teraType.slice(1)),
happinesses: p.Happiness ? toDisplayObject(p.Happiness, rawWeight) : undefined,
spreads: toDisplayObject(p.Spreads, rawWeight),
moves: toDisplayObject(p.Moves, rawWeight, move => {
Expand Down
3 changes: 2 additions & 1 deletion stats/src/reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@ function toMovesetStatistics(gen: Generation, format: ID, stats: Statistics, min
const o = gen.items.get(item);
return (o?.name) ?? item;
}),
'Tera Types': util.toDisplayObject(pokemon.teraTypes, teraType => teraType[0].toUpperCase() + teraType.slice(1)),
'Tera Types': util.toDisplayObject(pokemon.teraTypes,
teraType => teraType[0].toUpperCase() + teraType.slice(1)),
Spreads: util.toDisplayObject(pokemon.spreads),
Happiness: util.toDisplayObject(pokemon.happinesses),
Moves: util.toDisplayObject(pokemon.moves, move => {
Expand Down

0 comments on commit 1742d38

Please sign in to comment.