chore: remove braces from filter function

This commit is contained in:
Arnošt Pleskot 2023-07-13 14:43:16 +02:00
parent 1ed0fe035a
commit d8173c0824
No known key found for this signature in database

View File

@ -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) {