Skip to content

Commit ea7dd76

Browse files
committed
调整模板
1 parent 5f0ee72 commit ea7dd76

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

backend/modules/evaluation/pkg/conf/templates/javascript_template.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ function main() {
5454

5555
// JavaScriptSyntaxCheckTemplate JavaScript语法检查模板
5656
const JavaScriptSyntaxCheckTemplate = `
57-
{{RETURN_VAL_FUNCTION}}
5857
5958
// JavaScript语法检查
6059
const userCode = ` + "`" + `{{USER_CODE}}` + "`" + `;
@@ -71,4 +70,4 @@ try {
7170
const result = {"valid": false, "error": "语法错误: " + error.message};
7271
return_val(JSON.stringify(result));
7372
}
74-
`
73+
`

backend/modules/evaluation/pkg/conf/templates/python_template.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const PythonSyntaxCheckTemplate = `
6363
import ast
6464
import json
6565
66-
{{RETURN_VAL_FUNCTION}}
6766
6867
def check_syntax(code):
6968
"""
@@ -91,4 +90,4 @@ else:
9190
9291
# 输出结果
9392
return_val(json.dumps(result))
94-
`
93+
`

0 commit comments

Comments
 (0)