Skip to content

Commit 02e1cf0

Browse files
authored
GetTypesToLoad Attribute cant be null (#5054)
since it walks the items returned by GetCustomAttributes which will not contain nulls
1 parent 5473488 commit 02e1cf0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Microsoft.TestPlatform.Common/Utilities/TypesToLoadUtilities.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ internal static IEnumerable<Type> GetTypesToLoad(Assembly assembly)
2727

2828
private static IEnumerable<Type> GetTypesToLoad(Attribute attribute)
2929
{
30-
if (attribute == null)
31-
return Enumerable.Empty<Type>();
32-
3330
var type = attribute.GetType();
3431
var typesProperty = type.GetProperty("Types");
3532

0 commit comments

Comments
 (0)