Commit 3c4021c
MSD: Collapse redundant resetLocaleData branching
Both `loadOmnibar` and the dashboard `I18nProvider` had an identical
four-line if/else that called `resetLocaleData(data)` for the success
branch and `resetLocaleData()` for the undefined branch. The two
branches are equivalent: `resetLocaleData` accepts an optional
`LocaleData` argument and passing `undefined` has the same effect as
passing nothing (both clear the data bag and reapply default-domain
metadata).
Collapse to a single `resetLocaleData( data )` call at each site.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e6fde86 commit 3c4021c
2 files changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 138 | + | |
143 | 139 | | |
144 | 140 | | |
145 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 39 | + | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| |||
0 commit comments