Skip to content

Commit

Permalink
refactor: use Object.values instead of .entries (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Nov 4, 2020
1 parent 1bb9218 commit bff92a8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,9 @@ export function createServer(
);
}

Object.entries(ctxRef.current.subscriptions).forEach(
([, subscription]) => {
subscription.return?.();
},
);
Object.values(ctxRef.current.subscriptions).forEach((subscription) => {
subscription.return?.();
});
}

socket.onerror = errorOrCloseHandler;
Expand Down

0 comments on commit bff92a8

Please sign in to comment.