From 87ee5906076c0453bef45747730c9fe2eece61d5 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Sun, 26 Nov 2023 22:17:28 +0400 Subject: [PATCH] Minor refactor --- .../DependencyRegistrar.T/DependencyRegistrar.T.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dependency-registry/DependencyRegistry/DependencyRegistrar.T/DependencyRegistrar.T.cs b/src/dependency-registry/DependencyRegistry/DependencyRegistrar.T/DependencyRegistrar.T.cs index 9220e08..83fe6f7 100644 --- a/src/dependency-registry/DependencyRegistry/DependencyRegistrar.T/DependencyRegistrar.T.cs +++ b/src/dependency-registry/DependencyRegistry/DependencyRegistrar.T/DependencyRegistrar.T.cs @@ -11,10 +11,8 @@ public sealed partial class DependencyRegistrar private readonly Func resolver; internal DependencyRegistrar(IServiceCollection services, Func resolver) - { - this.services = services; - this.resolver = resolver; - } + => + (this.services, this.resolver) = (services, resolver); public static DependencyRegistrar Create(IServiceCollection services, Func resolver) =>