Skip to content

Commit b97c862

Browse files
authored
Update remove-player-revision.ts (#140)
1 parent 82e1864 commit b97c862

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/features/dkp-records/request-revision/remove-player-revision.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export class RemovePlayerRevision extends RaidReportRevision {
1515
throw this.getFormatError("missing player name");
1616
}
1717
const tickNumbers = ticks.map((t) => Number(t.replace(",", "")));
18+
if (!tickNumbers.length) {
19+
throw this.getFormatError("missing tick number(s)");
20+
}
1821
if (tickNumbers.length > 0 && some(tickNumbers, (t) => Number.isNaN(t))) {
1922
throw this.getFormatError("invalid tick numbers");
2023
}

0 commit comments

Comments
 (0)