core: remove pdoc.psdoc hack

This commit is contained in:
undefined committed 2021-05-25 23:06:20 +08:00
1 parent c0a3f235ca
commit 71f86cf79b
7 files changed
+21 -37

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ async function runProblem(pdoc: ProblemDoc, udict: ND): Promise<void>;
async function runProblem(domainId: string, pid: number, udict: ND): Promise<void>;
async function runProblem(...arg: any[]) {
const pdoc: ProblemDoc = (typeof arg[0] === 'string')
? await problem.get(arg[0], arg[1], -1)
? await problem.get(arg[0], arg[1])
: arg[0];
const udict: ND = (typeof arg[0] === 'string') ? arg[2] : arg[1];
const [, nPages] = await paginate(