judge: fix backward-compatibility

This commit is contained in:
undefined committed 2022-09-24 17:49:06 +08:00
1 parent eedbf7875f
commit f7006cf288
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": "3.0.1",
"version": "3.0.2",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -71,7 +71,7 @@ function parseArgs(execute: string): string[] {
function proc(params: Parameter): Cmd {
const copyOut = supportOptional
? params.copyOut
: params.copyOut.map((i) => (i.endsWith('?') ? i.substring(0, i.length - 1) : i));
: (params.copyOut || []).map((i) => (i.endsWith('?') ? i.substring(0, i.length - 1) : i));
const size = parseMemoryMB(getConfig('stdio_size'));
const rate = getConfig('rate');
const copyOutCached = [...(params.copyOutCached || [])];