Commit bcedbba
lib: Drop unnecessary optional chaining
DialogFooter already accesses other fields of `action`, and thus it
can't be undefined.
apply_modal_dialog() already assumes that `event` is defined, as it
calls `.preventDefault()` on it (which would crashs if undefined).
Spotted by Coverity.1 parent 24a2e28 commit bcedbba
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
0 commit comments