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 8, 2024
1 parent b544485 commit 8df2af9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/mahoji/lib/abstracted_commands/fishingContestCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ export async function fishingContestStartCommand(user: MUser, channelID: string,
if (user.hasEquippedOrInBank('Crystal fishing rod')) {
quantity++;
quantityBoosts.push('1 for Crystal fishing rod');
} if (true) {
}
if (true) {
}

if (!loc) {
for (const location of validLocs) {
if (user.bank.amount(location.bait.id) >= quanity) {
loc = location.name;
}
}
if (!loc) loc = validLocs[0].name;
for (const location of validLocs) {
if (user.bank.amount(location.bait.id) >= quanity) {
loc = location.name;
}
}
if (!loc) loc = validLocs[0].name;
}
if (!fishingLocation) {

Check warning on line 50 in src/mahoji/lib/abstracted_commands/fishingContestCommand.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 `That's not a valid location to fish at, you can fish at these locations: ${fishingLocations
Expand Down

0 comments on commit 8df2af9

Please sign in to comment.