From 31d25eaead8ff012b6a53d4b80a479be98260ebd Mon Sep 17 00:00:00 2001 From: Teffen Ellis Date: Mon, 19 May 2025 03:08:31 +0200 Subject: [PATCH] web: (ESLint) no-lonely-if --- web/src/rac/index.entrypoint.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/web/src/rac/index.entrypoint.ts b/web/src/rac/index.entrypoint.ts index d9ddbf02a2..e8c297bbaa 100644 --- a/web/src/rac/index.entrypoint.ts +++ b/web/src/rac/index.entrypoint.ts @@ -215,13 +215,11 @@ export class RacInterface extends Interface { ); return; } - } else { - if (this.connectionAttempt >= RECONNECT_ATTEMPTS) { - this.reconnectingMessage = msg( - str`Connection failed after ${this.connectionAttempt} attempts.`, - ); - return; - } + } else if (this.connectionAttempt >= RECONNECT_ATTEMPTS) { + this.reconnectingMessage = msg( + str`Connection failed after ${this.connectionAttempt} attempts.`, + ); + return; } const delay = 500 * this.connectionAttempt; this.reconnectingMessage = msg(