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
@@ -151,7 +151,7 @@ export const judge = async (ctx) => {
|
||||
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) };
|
||||
}
|
||||
const copyIn = {};
|
||||
|
||||
Reference in new issue
Block a user