Commit 5b3912f
committed
refactor: remove unnecessary
[DOMPurify v3.2.2][1] narrowed down the types of these hooks so that
these are known to have the `Element` type, which means checking the
type of these at runtime is unnecessary.
[1]: https://github.com/cure53/DOMPurify/releases/tag/3.2.2
See: fe3cffb
See: cure53/DOMPurify@4cdfd1f
Cherry-picked-from: 7a1530dElement check1 parent 01ff8c5 commit 5b3912f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments