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
@@ -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 = {};