From a649d5ec69354cb3e0ef2120f81a78c297ab9e95 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sun, 29 Sep 2024 13:07:55 +0200 Subject: [PATCH] Update webapp/src/Service/DOMJudgeService.php Co-authored-by: MCJ Vasseur <14887731+vmcj@users.noreply.github.com> --- webapp/src/Service/DOMJudgeService.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webapp/src/Service/DOMJudgeService.php b/webapp/src/Service/DOMJudgeService.php index 0b2fa54bdb..6aa225144e 100644 --- a/webapp/src/Service/DOMJudgeService.php +++ b/webapp/src/Service/DOMJudgeService.php @@ -1434,10 +1434,7 @@ public function getRunConfig(ContestProblem $problem, Submission $submission): s $passLimit = 1; if ($problem->getProblem()->isMultipassProblem()) { - $passLimit = 2; - if ($problem->getProblem()->getMultipassLimit() !== null) { - $passLimit = $problem->getProblem()->getMultipassLimit(); - } + $passLimit = $problem->getProblem()->getMultipassLimit() ?? 2; } return $this->jsonEncode(