Commit 4e85b7f
committed
fix(ws-hook): block-scope errorMessage in switch case 'error'
Wrap case 'error' body in braces to scope const errorMessage locally.
Satisfies Biome linter and prevents variable leakage across cases.1 parent 53e10ce commit 4e85b7f
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
0 commit comments