File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
webapp/src/Controller/API Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ private function addSingleJudgingRun(
1008
1008
}
1009
1009
}
1010
1010
$ sendJudgingEvent = false ;
1011
- if (!$ hasNullResults || $ lazyEval != DOMJudgeService::EVAL_FULL ) {
1011
+ if (!$ hasNullResults || $ lazyEval !== DOMJudgeService::EVAL_FULL ) {
1012
1012
// NOTE: setting endtime here determines in testcases_GET
1013
1013
// whether a next testcase will be handed out.
1014
1014
$ judging ->setEndtime (Utils::now ());
@@ -1024,7 +1024,7 @@ private function addSingleJudgingRun(
1024
1024
throw new BadMethodCallException ('internal bug: the evaluated result changed during judging ' );
1025
1025
}
1026
1026
1027
- if ($ lazyEval != DOMJudgeService::EVAL_FULL ) {
1027
+ if ($ lazyEval !== DOMJudgeService::EVAL_FULL ) {
1028
1028
// We don't want to continue on this problem, even if there's spare resources.
1029
1029
$ this ->em ->getConnection ()->executeStatement (
1030
1030
'UPDATE judgetask SET valid=0, priority=:priority '
@@ -1076,7 +1076,7 @@ private function addSingleJudgingRun(
1076
1076
}
1077
1077
}
1078
1078
1079
- return $ judging ->getResult () === null || $ judging ->getJudgeCompletely () || $ lazyEval == DOMJudgeService::EVAL_FULL ;
1079
+ return $ judging ->getResult () === null || $ judging ->getJudgeCompletely () || $ lazyEval === DOMJudgeService::EVAL_FULL ;
1080
1080
}
1081
1081
1082
1082
private function maybeUpdateActiveJudging (Judging $ judging ): void
You can’t perform that action at this time.
0 commit comments