Skip to content

Commit

Permalink
Cleanup as we can use the new function
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Mar 19, 2024
1 parent 2210cf5 commit adccd5a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions webapp/src/Controller/Jury/SubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,7 @@ public function viewAction(
->getSingleScalarResult();
}

$evalOnDemand = false;
$problemLazyEvalResults = $submission->getContestProblem()->getLazyEvalResults();
if (((int)$problemLazyEvalResults === (int)DOMJudgeService::EVAL_DEFAULT
&& (int)$this->config->get('lazy_eval_results') === (int)DOMJudgeService::EVAL_DEMAND)
|| (int)$problemLazyEvalResults === (int)DOMJudgeService::EVAL_DEMAND
) {
$evalOnDemand = true;
}
$evalOnDemand = $submission->getContestProblem()->determineOnDemand($this->config->get('lazy_eval_results'));

Check failure on line 497 in webapp/src/Controller/Jury/SubmissionController.php

View workflow job for this annotation

GitHub Actions / phpcs

Spaces must be used to indent lines; tabs are not allowed

Check failure on line 497 in webapp/src/Controller/Jury/SubmissionController.php

View workflow job for this annotation

GitHub Actions / phpcs

Line indented incorrectly; expected at least 8 spaces, found 4

$twigData = [
'submission' => $submission,
Expand Down

0 comments on commit adccd5a

Please sign in to comment.