replace for ;; with while true.

This commit is contained in:
HarelM
2026-07-09 16:31:27 +03:00
parent b76d9cbe29
commit 70a2db580f
+2 -2
View File
@@ -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) {