lgtm: ignore false positive

This commit is contained in:
undefined committed 2021-04-03 10:42:46 +08:00
1 parent 92229c1ee0
commit 51ce9f80d5
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -1,4 +1,5 @@
import 'hydrooj/src/loader';
jest.mock('hydrooj/src/service/db');
export async function connect() {
@@ -11,6 +12,7 @@ export async function connect() {
const func = scripts[dbVer];
dbVer++;
if (func.toString().includes('_FRESH_INSTALL_IGNORE')) continue;
// eslint-disable-next-line no-await-in-loop
await func();
}
}