Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
I-am-TURBO authored Mar 17, 2024
1 parent 8e39a18 commit 1eb8c76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mahoji/commands/dg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ async function startCommand(channelID: string, user: MUser, floor: string | unde
async function buyCommand(user: MUser, name: string, quantity?: number) {
const buyable = dungBuyables.find(i => stringMatches(name, i.item.name));
if (!options.item) {

Check warning on line 181 in src/mahoji/commands/dg.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

Unexpected any value in conditional. An explicit comparison or type cast is required
return `${dungBuyables
.map(i => `**${i.item.name}:** ${i.cost.toLocaleString()} tokens`)
.join('\n')}.`;
return `${dungBuyables.map(i => `**${i.item.name}:** ${i.cost.toLocaleString()} tokens`).join('\n')}.`;
}

if (!quantity) {
Expand Down

0 comments on commit 1eb8c76

Please sign in to comment.