Skip to content

Commit

Permalink
简陋的检查还是有必要的(
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed May 8, 2024
1 parent ad68652 commit fea4142
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions branch/latest/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function win_rate(names: string, round: number): Promise<WinRateResult> {
throw new Error("round 必须大于 0");
}
if (!test_check(names)) {
throw new Error("你怎么在胜率输入里加 !test!(恼)\n${names}");
throw new Error("你怎么在胜率输入里丢了 !test!(恼)\n${names}");
}
return await md5_module.win_rate(names, round);
}
Expand All @@ -108,7 +108,7 @@ async function win_rate_callback(
callback: WinRateCallback,
): Promise<WinRateResult> {
if (!test_check(names)) {
throw new Error("你怎么在胜率输入里加 !test!(恼)\n${names}");
throw new Error("你怎么在胜率输入里丢了 !test!(恼)\n${names}");
}
return await md5_module.win_rate_callback(names, callback);
}
Expand All @@ -119,7 +119,7 @@ async function score(names: string, round: number): Promise<ScoreResult> {
throw new Error("round 必须大于 0");
}
if (!test_check(names)) {
throw new Error("你怎么在分数输入里加 !test!(恼)\n${names}");
throw new Error("你怎么在分数输入里丢了 !test!(恼)\n${names}");
}
return await md5_module.score(names, round);
}
Expand Down

0 comments on commit fea4142

Please sign in to comment.