From 389e8fda1fa2fdbfd34d5adcb06aaf686a3a6f78 Mon Sep 17 00:00:00 2001 From: t123yh Date: Tue, 22 Aug 2017 21:32:40 +0800 Subject: [PATCH] Fix mistype. --- src/judgeResult.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/judgeResult.ts b/src/judgeResult.ts index ffe5d2b..fbf0d94 100644 --- a/src/judgeResult.ts +++ b/src/judgeResult.ts @@ -56,7 +56,7 @@ export function convertResult(id: number, source: OverallResult): JudgeResultSub } } else if (source.judge != null && source.judge.subtasks != null) { const forEveryTestcase = function (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; else return reduce(list); }