Skip to content

Commit

Permalink
using explicit type where it's not obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lg committed Nov 13, 2024
1 parent 658cf84 commit b278c6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public CD BuildModel(string assemblyPath, string? include, string? exclude)
IEnumerable<ITypeDefinition> allTypes = mainModule.TypeDefinitions;

selectedTypes = FilterTypes(allTypes,
include == null ? null : new(include, RegexOptions.Compiled),
exclude == null ? null : new(exclude, RegexOptions.Compiled)).ToArray();
include == null ? null : new Regex(include, RegexOptions.Compiled),
exclude == null ? null : new Regex(exclude, RegexOptions.Compiled)).ToArray();

// generate dictionary to read names from later
uniqueIds = GenerateUniqueIds(selectedTypes);
Expand Down

0 comments on commit b278c6a

Please sign in to comment.