judge: fix strict checker compile

This commit is contained in:
undefined committed 2021-11-17 22:26:17 +08:00
1 parent 2f66bbfabd
commit 99ef3b7d17
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "2.12.5", "version": "2.12.6",
"main": "package.json", "main": "package.json",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -151,7 +151,7 @@ export const judge = async (ctx) => {
return compile(ctx.getLang(ctx.lang), ctx.code, 'code', copyIn, ctx.next); return compile(ctx.getLang(ctx.lang), ctx.code, 'code', copyIn, ctx.next);
})(), })(),
(() => { (() => {
if (!ctx.config.checker_type || ctx.config.checker_type === 'default') { if (!ctx.config.checker_type || ['default', 'strict'].includes(ctx.config.checker_type)) {
return { execute: '', copyIn: {}, clean: () => Promise.resolve(null) }; return { execute: '', copyIn: {}, clean: () => Promise.resolve(null) };
} }
const copyIn = {}; const copyIn = {};