Skip to content

Commit

Permalink
♻️ unnecessary null coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Jan 21, 2025
1 parent e09cd4a commit 7b9b9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const handler = async (r: Request, s: Response) => {
console.log(`Client ${client.id} connected`);

if (clients.has(story)) {
clients.set(story, (clients.get(story) ?? []).concat(client));
clients.set(story, clients.get(story)!.concat(client));
} else {
clients.set(story, [client]);
}
Expand Down

0 comments on commit 7b9b9e2

Please sign in to comment.