Commit 6ed661f
authored
perf: Use cheaper guard to determine if message is a notification (#3352)
When handling notifications on the command stream we already know that
the values are valid JSON, therefore we can use `hasProperty` as a type
guard instead of validating the notification entirely.1 parent 8682f27 commit 6ed661f
File tree
1 file changed
+2
-2
lines changed- packages/snaps-controllers/src/services
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
0 commit comments