mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: bug fix
This commit is contained in:
1 parent
ad050ba1fb
commit
84c7815ef6
2 files changed
+2
-2
No files matched your search
@@ -141,7 +141,7 @@ class JudgeTask {
|
||||
log.debug('Next: %d %o', data);
|
||||
data.key = 'next';
|
||||
data.rid = new ObjectID(this.rid);
|
||||
if (data.case) data.case.message = removeNixPath(data.case.message || '');
|
||||
if (data.case) data.case.message ||= '';
|
||||
if (typeof data.message === 'string') data.message = removeNixPath(data.message);
|
||||
if (typeof data.compilerText === 'string') data.compilerText = removeNixPath(data.compilerText);
|
||||
this.ws.send(JSON.stringify(data));
|
||||
|
||||
Reference in new issue
Block a user