Commit e15dc75
committed
refactor: use optional chaining instead of try-catch for broadcaster push
Addresses review feedback from louisgv. The push() method doesn't throw,
so the try-catch was unnecessary. Using optional chaining (?.) instead of
non-null assertion (!) is safer and more idiomatic TypeScript.1 parent d38b5c7 commit e15dc75
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
359 | 355 | | |
360 | 356 | | |
361 | 357 | | |
| |||
0 commit comments