Skip to content

Commit

Permalink
GetTypesToLoad Attribute cant be null (#5054)
Browse files Browse the repository at this point in the history
since it walks the items returned by GetCustomAttributes which will not contain nulls
  • Loading branch information
SimonCropp committed May 23, 2024
1 parent 5473488 commit 02e1cf0
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ internal static IEnumerable<Type> GetTypesToLoad(Assembly assembly)

private static IEnumerable<Type> GetTypesToLoad(Attribute attribute)
{
if (attribute == null)
return Enumerable.Empty<Type>();

var type = attribute.GetType();
var typesProperty = type.GetProperty("Types");

Expand Down

0 comments on commit 02e1cf0

Please sign in to comment.