Commit 9eb23d9
committed
refactor: remove unreachable null check per Copilot suggestion
Remove the null check for allowedHost since isAllowedUrl() validation
guarantees the canonicalized host exists in CANONICALIZED_TO_ORIGINAL map.
The check was technically unreachable code.
This simplifies the code while maintaining the same security guarantees.1 parent f7debb2 commit 9eb23d9
1 file changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 195 | | |
201 | 196 | | |
202 | 197 | | |
| |||
0 commit comments