chore: remove braces from filter function
This commit is contained in:
parent
1ed0fe035a
commit
d8173c0824
@ -82,9 +82,7 @@ try {
|
|||||||
socketDebug(`${socket.id} has disconnected`);
|
socketDebug(`${socket.id} has disconnected`);
|
||||||
for (const roomID of socket.rooms) {
|
for (const roomID of socket.rooms) {
|
||||||
const otherClients = (await io.in(roomID).fetchSockets()).filter(
|
const otherClients = (await io.in(roomID).fetchSockets()).filter(
|
||||||
(_socket) => {
|
(_socket) => _socket.id !== socket.id,
|
||||||
return _socket.id !== socket.id;
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (otherClients.length > 0) {
|
if (otherClients.length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user