From 45899586099f7a364d5503494dbd166a52eacc1a Mon Sep 17 00:00:00 2001 From: VariableVince <24507472+VariableVince@users.noreply.github.com> Date: Fri, 3 Apr 2026 02:54:09 +0200 Subject: [PATCH] Better --- src/server/MapPlaylist.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/MapPlaylist.ts b/src/server/MapPlaylist.ts index 3b1fa3e0e..8a036b81b 100644 --- a/src/server/MapPlaylist.ts +++ b/src/server/MapPlaylist.ts @@ -156,7 +156,7 @@ export class MapPlaylist { const maxAttempts = 6; let attempts = 0; - do { + while (true) { const map = this.tryFirstMap(type); const config = await this.buildConfig(type, map); attempts++; @@ -167,7 +167,7 @@ export class MapPlaylist { } this.firstMapToLast(type); - } while (true); // eslint-disable-line no-constant-condition + } } private async buildConfig(