diff --git a/.eslintrc.js b/.eslintrc.js index 14dbe41fd..3283fa5a5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -61,6 +61,9 @@ module.exports = { "space-infix-ops": "warn", "arrow-spacing": "warn", "no-trailing-spaces": "warn", + "no-constant-condition": ["error", { + "checkLoops": false, + }], "space-before-blocks": "warn", //'no-console': 'warn', "no-extra-boolean-cast": "off", diff --git a/server/database.js b/server/database.js index ab7340413..571313bc4 100644 --- a/server/database.js +++ b/server/database.js @@ -100,7 +100,7 @@ class Database { console.log("Closing DB") - for (;;) { + while (true) { Database.noReject = true; await R.close() await sleep(2000)