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;
}
} 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(