diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 9a8cd2f1b..f276c93c3 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.22.8", + "version": "2.22.9", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/src/hosts/hydro.ts b/packages/hydrojudge/src/hosts/hydro.ts index 9de6b9e8a..161f243ba 100644 --- a/packages/hydrojudge/src/hosts/hydro.ts +++ b/packages/hydrojudge/src/hosts/hydro.ts @@ -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));