Skip to content

Commit 840d452

Browse files
committed
♻️ Remove duplicate codes (#2402)
1 parent 47015e9 commit 840d452

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/lib/utils/contest_table_provider.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,7 @@ function parseContestRound(contestId: string, prefix: string): number {
213213
export class Typical90Provider extends ContestTableProviderBase {
214214
protected setFilterCondition(): (taskResult: TaskResult) => boolean {
215215
return (taskResult: TaskResult) => {
216-
if (classifyContest(taskResult.contest_id) !== this.contestType) {
217-
return false;
218-
}
219-
220-
return taskResult.contest_id === 'typical90';
216+
return classifyContest(taskResult.contest_id) === this.contestType;
221217
};
222218
}
223219

0 commit comments

Comments
 (0)