Commit fc47d00
committed
refactor: drop the redundant dedup guard when seeding direct dispatch entries
Service types are unique across instances because registrations are coalesced, so the seen.Add guard on the direct-registration pass was always true. Seed the seen set explicitly and add each entry unconditionally; the synthetic Func<T>/Lazy<T> pass still checks seen so an explicit relationship registration keeps its dispatch slot. Resolves the lone-if loop that the analyzer flagged without pushing a side-effecting predicate into a Where call.1 parent 6d37ec1 commit fc47d00
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 239 | + | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments