mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
lgtm: ignore false positive
This commit is contained in:
1 parent
92229c1ee0
commit
51ce9f80d5
2 files changed
+3
-1
No files matched your search
@@ -679,7 +679,7 @@ const Checker = (permPrivChecker) => {
|
|||||||
}
|
}
|
||||||
return function check() {
|
return function check() {
|
||||||
checker();
|
checker();
|
||||||
if (perm) this.checkPerm(perm);
|
if (perm) this.checkPerm(perm); // lgtm [js/trivial-conditional]
|
||||||
if (priv) this.checkPriv(priv);
|
if (priv) this.checkPriv(priv);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'hydrooj/src/loader';
|
import 'hydrooj/src/loader';
|
||||||
|
|
||||||
jest.mock('hydrooj/src/service/db');
|
jest.mock('hydrooj/src/service/db');
|
||||||
|
|
||||||
export async function connect() {
|
export async function connect() {
|
||||||
@@ -11,6 +12,7 @@ export async function connect() {
|
|||||||
const func = scripts[dbVer];
|
const func = scripts[dbVer];
|
||||||
dbVer++;
|
dbVer++;
|
||||||
if (func.toString().includes('_FRESH_INSTALL_IGNORE')) continue;
|
if (func.toString().includes('_FRESH_INSTALL_IGNORE')) continue;
|
||||||
|
// eslint-disable-next-line no-await-in-loop
|
||||||
await func();
|
await func();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user