eslint-config: add de-morgan

This commit is contained in:
undefined committed 2025-02-16 00:16:43 +08:00
1 parent 92afe8abef
commit 81d69adfb0
10 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -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() };
}