mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix strict checker compile
This commit is contained in:
1 parent
2f66bbfabd
commit
99ef3b7d17
2 files changed
+2
-2
No files matched your search
@@ -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",
|
||||||
|
|||||||
@@ -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 = {};
|
||||||
|
|||||||
Reference in new issue
Block a user