Browse Source

Fix mistype.

master
t123yh 7 years ago
parent
commit
389e8fda1f
  1. 2
      src/judgeResult.ts

2
src/judgeResult.ts

@ -56,7 +56,7 @@ export function convertResult(id: number, source: OverallResult): JudgeResultSub
} }
} else if (source.judge != null && source.judge.subtasks != null) { } else if (source.judge != null && source.judge.subtasks != null) {
const forEveryTestcase = function <TParam>(map: (v: TestcaseDetails) => TParam, reduce: (v: TParam[]) => TParam): TParam { const forEveryTestcase = function <TParam>(map: (v: TestcaseDetails) => TParam, reduce: (v: TParam[]) => TParam): TParam {
const list = source.judge.subtasks.map(s => reduce(s.cases.filter(c => c.result != null).map(c => map(c.result))))); const list = source.judge.subtasks.map(s => reduce(s.cases.filter(c => c.result != null).map(c => map(c.result))));
if (list.every(x => x == null)) return null; if (list.every(x => x == null)) return null;
else return reduce(list); else return reduce(list);
} }

Loading…
Cancel
Save