mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 07:47:50 +01:00
lint
This commit is contained in:
@@ -18,7 +18,7 @@ class Game {
|
||||
this.deck = deck;
|
||||
this.gameSize = deck.reduce(
|
||||
(accumulator, currentValue) => accumulator + currentValue.quantity,
|
||||
0,
|
||||
0
|
||||
);
|
||||
this.hasTimer = hasTimer;
|
||||
this.hasDedicatedModerator = hasDedicatedModerator;
|
||||
|
||||
@@ -45,7 +45,7 @@ class SocketManager {
|
||||
};
|
||||
|
||||
registerHandlers = (namespace, socket, gameManager) => {
|
||||
socket.on(globals.SOCKET_EVENTS.IN_GAME_MESSAGE, async (eventId, accessCode, args=null, ackFn=null) => {
|
||||
socket.on(globals.SOCKET_EVENTS.IN_GAME_MESSAGE, async (eventId, accessCode, args = null, ackFn = null) => {
|
||||
const game = gameManager.activeGameRunner.activeGames.get(accessCode);
|
||||
if (game) {
|
||||
switch (eventId) {
|
||||
|
||||
Reference in New Issue
Block a user