mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-04 00:24:18 +00:00
Allow constant condition for loops
This commit is contained in:
parent
0e9b0b1b74
commit
ee8db698b3
@ -25,6 +25,7 @@
|
||||
"error",
|
||||
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
|
||||
],
|
||||
"no-constant-condition": ["error", { "checkLoops": false }],
|
||||
"sort-imports": [
|
||||
"error",
|
||||
{ "ignoreDeclarationSort": true, "ignoreCase": true }
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user