mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: fix warnings
This commit is contained in:
1 parent
0cb5afa169
commit
1adf04ae47
3 files changed
+2
-12
No files matched your search
@@ -143,7 +143,7 @@ class RecordDetailHandler extends Handler {
|
||||
if (download) {
|
||||
const lang = langs[rdoc.lang]?.pretest || rdoc.lang;
|
||||
this.response.body = rdoc.code;
|
||||
this.response.disposition = `attachment; filename="${langs[lang].code_file}` || `foo.${rdoc.lang}"`;
|
||||
this.response.disposition = `attachment; filename="${langs[lang].code_file || `foo.${rdoc.lang}`}"`;
|
||||
return;
|
||||
}
|
||||
if (pdoc && !(rdoc.contest && this.user._id === rdoc.uid)) {
|
||||
|
||||
Reference in new issue
Block a user