Skip to content

Commit

Permalink
Fix compilation error for C# 7
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Jun 21, 2024
1 parent 027e6ac commit b2efde4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ internal void CollectFromParentScopes(
if (scope.TryGetRegistration(finderType, out var registration) &&
registration.Provider is CollectionInstanceProvider parentCollection)
{
mergedRegistrations ??= ListPool<Registration>.Get();
mergedRegistrations = mergedRegistrations ?? ListPool<Registration>.Get();
mergedRegistrations.AddRange(registrations);

if (localScopeOnly)
Expand Down

0 comments on commit b2efde4

Please sign in to comment.