Skip to content

Commit da4188a

Browse files
committed
One more early return
1 parent a85998e commit da4188a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

BinaryObjectScanner/Data/StaticChecks.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ private static List<T> InitCheckClasses<T>(Assembly assembly)
147147
assemblyTypes = rtle.Types ?? [];
148148
}
149149

150+
// If no assembly types are found
151+
if (assemblyTypes.Length == 0)
152+
return [];
153+
150154
// Loop through all types
151155
List<T> classTypes = [];
152156
foreach (Type? type in assemblyTypes)

0 commit comments

Comments
 (0)