mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
eslint-config: add de-morgan
This commit is contained in:
10 files changed
+19
-19
No files matched your search
@@ -396,7 +396,7 @@ export class ProblemModel {
|
||||
// TODO enhance
|
||||
if (pdocs.length !== pids.length) {
|
||||
for (const pid of pids) {
|
||||
if (!(r[pid] || l[pid])) {
|
||||
if (!r[pid] && !l[pid]) {
|
||||
if (doThrow) throw new ProblemNotFoundError(domainId, pid);
|
||||
if (!indexByDocIdOnly) r[pid] = { ...ProblemModel.default, domainId, pid: pid.toString() };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user