Skip to content

Commit 2dba71f

Browse files
committed
Remove unnecessary ToHashSet call
1 parent b351dde commit 2dba71f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Scrutor/ImplementationTypeSelector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ void ISelector.Populate(IServiceCollection services, RegistrationStrategy? regis
147147
}
148148
}
149149

150-
private IServiceTypeSelector AddSelector(IEnumerable<Type> types)
150+
private IServiceTypeSelector AddSelector(ISet<Type> types)
151151
{
152-
var selector = new ServiceTypeSelector(this, types.ToHashSet());
152+
var selector = new ServiceTypeSelector(this, types);
153153

154154
Selectors.Add(selector);
155155

0 commit comments

Comments
 (0)