Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Nov 26, 2023
1 parent e74ee33 commit 87ee590
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ public sealed partial class DependencyRegistrar<T>
private readonly Func<IServiceProvider, T> resolver;

internal DependencyRegistrar(IServiceCollection services, Func<IServiceProvider, T> resolver)
{
this.services = services;
this.resolver = resolver;
}
=>
(this.services, this.resolver) = (services, resolver);

public static DependencyRegistrar<T> Create(IServiceCollection services, Func<IServiceProvider, T> resolver)
=>
Expand Down

0 comments on commit 87ee590

Please sign in to comment.