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;
|
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(
|
||||||
|
Reference in New Issue
Block a user