lint: fix

This commit is contained in:
undefined committed 2021-08-11 21:47:22 +08:00
1 parent bf88b828ec
commit 4356f17ef8
7 files changed
+7 -11

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ import record from '../model/record';
import user from '../model/user';
import message from '../model/message';
import {
Route, Handler, Types, param, query,
Route, Handler, Types, param,
} from '../service/server';
import * as bus from '../service/bus';
import storage from '../service/storage';
+1 -1
View File
@@ -11,7 +11,7 @@ import {
PenaltyRules, Tdoc, ProblemDoc, User,
} from '../interface';
import {
Route, Handler, Types, param, query,
Route, Handler, Types, param,
} from '../service/server';
import * as bus from '../service/bus';
import domain from '../model/domain';
+1 -1
View File
@@ -66,7 +66,7 @@ class RecordModel {
let data: FileInfo[] = [];
if (rdoc.pid) {
const pdoc = await problem.get(rdoc.pdomain, rdoc.pid);
if (!pdoc) throw new ProblemNotFoundError(rdoc?.pdomain, rdoc.pid);
if (!pdoc) throw new ProblemNotFoundError(rdoc.pdomain, rdoc.pid);
data = pdoc.data;
if (typeof pdoc.config === 'string') throw new Error(pdoc.config);
if (pdoc.config.type === 'remote_judge') {