mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
eslint: enable extra rules
no-implicit-coercion, no-extra-boolean-cast, no-invalid-this, logical-assignment-operators, no-unmodified-loop-condition
This commit is contained in:
1 parent
5ac9d930b2
commit
7f51df236a
34 files changed
+100
-96
No files matched your search
@@ -111,7 +111,7 @@ export async function calcLevel(domainId: string, report: Function) {
|
||||
let bulk = coll.initializeUnorderedBulkOp();
|
||||
for await (const dudoc of ducur) {
|
||||
count++;
|
||||
if (!dudoc.rp) dudoc.rp = null;
|
||||
dudoc.rp ||= null;
|
||||
if (dudoc.rp !== last.rp) rank = count;
|
||||
bulk.find({ _id: dudoc._id }).updateOne({ $set: { rank } });
|
||||
last = dudoc;
|
||||
|
||||
Reference in new issue
Block a user