web: (ESLint) no-lonely-if

This commit is contained in:
Teffen Ellis
2025-05-19 03:08:31 +02:00
committed by Teffen Ellis
parent 7a12fbf8b7
commit 31d25eaead

View File

@ -215,13 +215,11 @@ export class RacInterface extends Interface {
); );
return; return;
} }
} else { } else if (this.connectionAttempt >= RECONNECT_ATTEMPTS) {
if (this.connectionAttempt >= RECONNECT_ATTEMPTS) { this.reconnectingMessage = msg(
this.reconnectingMessage = msg( str`Connection failed after ${this.connectionAttempt} attempts.`,
str`Connection failed after ${this.connectionAttempt} attempts.`, );
); return;
return;
}
} }
const delay = 500 * this.connectionAttempt; const delay = 500 * this.connectionAttempt;
this.reconnectingMessage = msg( this.reconnectingMessage = msg(