Skip to content

Commit

Permalink
Update ServiceRegistrationGenerator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Nov 18, 2023
1 parent 215ed5c commit 6deb639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Injectio.Generators/ServiceRegistrationGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ private void ExecuteGeneration(
(ImmutableArray<ServiceRegistrationContext?> Registrations, (string? AssemblyName, string? MethodName) Options) source)
{
var serviceRegistrations = source.Registrations
.SelectMany(m => m.ServiceRegistrations)
.SelectMany(m => m!.ServiceRegistrations)
.Where(m => m is not null)
.ToArray();

var moduleRegistrations = source.Registrations
.SelectMany(m => m.ModuleRegistrations)
.SelectMany(m => m!.ModuleRegistrations)
.Where(m => m is not null)
.ToArray();

Expand Down

0 comments on commit 6deb639

Please sign in to comment.