judge: bug fix

This commit is contained in:
undefined committed 2022-02-10 17:33:22 +08:00
1 parent 16b9cb461e
commit cd157a5e43
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.13.2",
"version": "2.13.3",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -195,7 +195,7 @@ function isValidConfig(config) {
}
const memMax = max(config.subtasks.map((subtask) => subtask.memory));
if (memMax > parseMemoryMB(getConfig('memoryMax'))) throw new FormatError('Memory limit larger than memory_max');
if (['default', 'strict'].includes(config.checker_type || 'default') && !config.checker) {
if (!['default', 'strict'].includes(config.checker_type || 'default') && !config.checker) {
throw new FormatError('You did not specify a checker.');
}
}