We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f0ee72 commit ea7dd76Copy full SHA for ea7dd76
2 files changed
backend/modules/evaluation/pkg/conf/templates/javascript_template.go
@@ -54,7 +54,6 @@ function main() {
54
55
// JavaScriptSyntaxCheckTemplate JavaScript语法检查模板
56
const JavaScriptSyntaxCheckTemplate = `
57
-{{RETURN_VAL_FUNCTION}}
58
59
// JavaScript语法检查
60
const userCode = ` + "`" + `{{USER_CODE}}` + "`" + `;
@@ -71,4 +70,4 @@ try {
71
70
const result = {"valid": false, "error": "语法错误: " + error.message};
72
return_val(JSON.stringify(result));
73
}
74
-`
+`
backend/modules/evaluation/pkg/conf/templates/python_template.go
@@ -63,7 +63,6 @@ const PythonSyntaxCheckTemplate = `
63
import ast
64
import json
65
66
67
68
def check_syntax(code):
69
"""
@@ -91,4 +90,4 @@ else:
91
90
92
# 输出结果
93
return_val(json.dumps(result))
94
0 commit comments