Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
I-am-TURBO committed Mar 8, 2024
1 parent 3f85dd2 commit cc2aa95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mahoji/lib/abstracted_commands/fishingContestCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export async function fishingContestStartCommand(user: MUser, channelID: string,
if (user.bank.amount(location.bait.id) >= quantity) {
loc = location.name;
}
}
if (!loc) loc = validLocs[0].name;
}

Check failure on line 47 in src/mahoji/lib/abstracted_commands/fishingContestCommand.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

Insert `↹`
if (!loc) loc = validLocs[0].name;

Check failure on line 48 in src/mahoji/lib/abstracted_commands/fishingContestCommand.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

Insert `↹`
const fishingLocation = fishingLocations.find(i => stringMatches(i.name, loc!));

Check warning on line 49 in src/mahoji/lib/abstracted_commands/fishingContestCommand.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'fishingLocation' is assigned a value but never used
}
if (!fishingLocation) {

Check warning on line 51 in src/mahoji/lib/abstracted_commands/fishingContestCommand.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - 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 cc2aa95

Please sign in to comment.