Commit a03a803
authored
cobalt: Remove redundant map search (youtube#9189)
The original code performed two map lookups to retrieve resource
contents: first with base::Contains and then with resource_map.at.
This change replaces that with a single call to base::FindOrNull.
This optimizes the resource lookup process by eliminating a redundant
map search, improving efficiency without altering behavior.
Issue: 4546305241 parent 210c237 commit a03a803
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
| |||
0 commit comments