Skip to content

Commit

Permalink
Update remove-player-revision.ts (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoodrow authored Oct 8, 2024
1 parent 82e1864 commit b97c862
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export class RemovePlayerRevision extends RaidReportRevision {
throw this.getFormatError("missing player name");
}
const tickNumbers = ticks.map((t) => Number(t.replace(",", "")));
if (!tickNumbers.length) {
throw this.getFormatError("missing tick number(s)");
}
if (tickNumbers.length > 0 && some(tickNumbers, (t) => Number.isNaN(t))) {
throw this.getFormatError("invalid tick numbers");
}
Expand Down

0 comments on commit b97c862

Please sign in to comment.