Allow constant condition for loops

This commit is contained in:
Franck Royer 2021-04-13 15:00:47 +10:00
parent 0e9b0b1b74
commit ee8db698b3
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 3 additions and 3 deletions

View File

@ -25,6 +25,7 @@
"error",
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
],
"no-constant-condition": ["error", { "checkLoops": false }],
"sort-imports": [
"error",
{ "ignoreDeclarationSort": true, "ignoreCase": true }

View File

@ -32,7 +32,7 @@ export class WakuStore {
const messages: WakuMessage[] = [];
let cursor = undefined;
do {
while (true) {
try {
const { stream } = await connection.newStream(StoreCodec);
try {
@ -92,7 +92,6 @@ export class WakuStore {
err
);
}
// eslint-disable-next-line no-constant-condition
} while (true);
}
}
}