Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Sep 11, 2023
1 parent b7b65f6 commit aada9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RepoM.Api/Plugins/SimpleInjector/PackageExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static IEnumerable<Type> GetExportedTypesFrom(Assembly assembly)

private static void RequiresPackageTypesHaveDefaultConstructor(Type[] packageTypes)
{
var invalidPackageType = packageTypes.FirstOrDefault(type => !type.HasDefaultConstructor());
Type? invalidPackageType = Array.Find(packageTypes, type => !type.HasDefaultConstructor());

if (invalidPackageType != null)
{
Expand Down

0 comments on commit aada9d5

Please sign in to comment.