From 6230bb16574cf92d9558a25be485586ecb805c90 Mon Sep 17 00:00:00 2001 From: Piotr 'pwh' Hanusiak Date: Mon, 28 Mar 2022 14:35:21 +0200 Subject: [PATCH] fix linter issues --- back/src/Services/SocketManager.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/back/src/Services/SocketManager.ts b/back/src/Services/SocketManager.ts index 2d3dd2e3..8aa7f6a4 100644 --- a/back/src/Services/SocketManager.ts +++ b/back/src/Services/SocketManager.ts @@ -287,7 +287,9 @@ export class SocketManager { this.onClientLeave(thing, newZone, listener), (emoteEventMessage: EmoteEventMessage, listener: ZoneSocket) => this.onEmote(emoteEventMessage, listener), - (groupId: number, listener: ZoneSocket) => this.onLockGroup(groupId, listener, roomPromise), + (groupId: number, listener: ZoneSocket) => { + void this.onLockGroup(groupId, listener, roomPromise); + }, (playerDetailsUpdatedMessage: PlayerDetailsUpdatedMessage, listener: ZoneSocket) => this.onPlayerDetailsUpdated(playerDetailsUpdatedMessage, listener) ) @@ -391,7 +393,11 @@ export class SocketManager { emitZoneMessage(subMessage, client); } - private async onLockGroup(groupId: number, client: ZoneSocket, roomPromise: PromiseLike | undefined) { + private async onLockGroup( + groupId: number, + client: ZoneSocket, + roomPromise: PromiseLike | undefined + ): Promise { if (!roomPromise) { return; }