chore: deps

This commit is contained in:
iCrawl
2022-09-04 19:33:57 +02:00
parent 8b3d006118
commit 4ffdada4f7
21 changed files with 722 additions and 612 deletions

View File

@@ -209,7 +209,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
this.status = WebSocketShardStatus.Idle;
if (options.recover !== undefined) {
// eslint-disable-next-line consistent-return
return this.connect();
}
}
@@ -302,7 +301,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
});
}
// eslint-disable-next-line consistent-return
private async heartbeat(requested = false) {
if (!this.isAck && !requested) {
return this.destroy({ reason: 'Zombie connection', recover: WebSocketShardDestroyRecovery.Resume });
@@ -480,7 +478,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
this.emit('error', err);
}
// eslint-disable-next-line consistent-return
private async onClose(code: number) {
switch (code) {
case CloseCodes.Normal: {