From 19f96e75cbe0eca3d6c3440b431f849c710e850a Mon Sep 17 00:00:00 2001 From: Aayush Shukla Date: Tue, 18 Jun 2024 17:41:44 +0530 Subject: [PATCH] Ran deno lint, deno format and deno test found in CONTRIBUTING --- src/card.ts | 4 +++- src/trophy_list.ts | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/card.ts b/src/card.ts index fbde4200..9bda7c3a 100644 --- a/src/card.ts +++ b/src/card.ts @@ -29,7 +29,9 @@ export class Card { trophyList.filterByHidden(); if (this.titles.length != 0) { - const includeTitles = this.titles.filter(title => !title.startsWith("-")); + const includeTitles = this.titles.filter((title) => + !title.startsWith("-") + ); if (includeTitles.length > 0) { trophyList.filterByTitles(includeTitles); } diff --git a/src/trophy_list.ts b/src/trophy_list.ts index 8a03d757..e3e3d771 100644 --- a/src/trophy_list.ts +++ b/src/trophy_list.ts @@ -77,9 +77,13 @@ export class TrophyList { ); } filterByExclusionTitles(titles: Array) { - const excludeTitles = titles.filter(title => title.startsWith("-")).map(title => title.substring(1)); + const excludeTitles = titles.filter((title) => title.startsWith("-")).map( + (title) => title.substring(1), + ); if (excludeTitles.length > 0) { - this.trophies = this.trophies.filter(trophy => !excludeTitles.includes(trophy.title)); + this.trophies = this.trophies.filter((trophy) => + !excludeTitles.includes(trophy.title) + ); } } sortByRank() {