Commit d5dc991
fix(hosting): use OfType<Type>() in FindXamlMetadataProviderInAssembly
Addresses #144 review feedback. `ex.Types` is `Type?[]`, so the previous
`.Where(t => t is not null).ToArray()!` pattern relied on a nullable
suppression and left a redundant `t is null` check inside the scan loop.
`OfType<Type>().ToArray()` produces a true `Type[]`, eliminating both.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8d296c9 commit d5dc991
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
0 commit comments