Skip to content

Commit

Permalink
chore: remove braces from filter function
Browse files Browse the repository at this point in the history
  • Loading branch information
arnostpleskot committed Jul 13, 2023
1 parent 1ed0fe0 commit d8173c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ try {
socketDebug(`${socket.id} has disconnected`);
for (const roomID of socket.rooms) {
const otherClients = (await io.in(roomID).fetchSockets()).filter(
(_socket) => {
return _socket.id !== socket.id;
},
(_socket) => _socket.id !== socket.id,
);

if (otherClients.length > 0) {
Expand Down

0 comments on commit d8173c0

Please sign in to comment.