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