Commit a0aa6a4
committed
fix: add missing isPlatformError type guard in ServerSecretStore.get
The get method was accessing cause.reason._tag without first checking if
cause is a PlatformError, which could throw a TypeError at runtime. This
adds the isPlatformError guard consistent with remove and getOrCreateRandom.1 parent 73ba21e commit a0aa6a4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments