web: (ESLint) no-lonely-if
This commit is contained in:

committed by
Teffen Ellis

parent
7a12fbf8b7
commit
31d25eaead
@ -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(
|
||||
|
Reference in New Issue
Block a user