mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 15:37:28 +00:00
replace for ;; with while true.
This commit is contained in:
@@ -20,7 +20,7 @@ async function retry(
|
||||
): Promise<void> {
|
||||
const start = Date.now();
|
||||
let lastError: unknown;
|
||||
for (;;) {
|
||||
while (true) {
|
||||
try {
|
||||
await assertion();
|
||||
return;
|
||||
@@ -382,7 +382,7 @@ export class PlaywrightHelper {
|
||||
let chunkSize = 1000;
|
||||
const chunk = new Array(chunkSize).join("x");
|
||||
let index = 0;
|
||||
for (;;) {
|
||||
while (true) {
|
||||
try {
|
||||
window.localStorage.setItem(`${prefix}${index++}`, chunk);
|
||||
} catch (e: any) {
|
||||
|
||||
Reference in New Issue
Block a user