File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ public CompositionRootBuilder RegisterModule(IModule module)
2121 }
2222
2323 public IContainer Build ( )
24- {
25- return _builder . Build ( ) ;
26- }
24+ => _builder . Build ( ) ;
2725 }
2826}
Original file line number Diff line number Diff line change @@ -9,13 +9,10 @@ public sealed class ModuleBuilder
99 private readonly ImmutableList < Register > _registrations ;
1010
1111 public ModuleBuilder ( )
12- {
13- _registrations = ImmutableList < Register > . Empty ;
14- }
12+ => _registrations = ImmutableList < Register > . Empty ;
1513
1614 private ModuleBuilder ( ImmutableList < Register > registrations )
17- {
18- _registrations = registrations ;
15+ => _registrations = registrations ;
1916 }
2017
2118 public ModuleBuilder RegisterInstance < T > ( T instance )
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ internal sealed class ModuleRegistrar : Module
1010 private readonly ImmutableList < Register > _registrations ;
1111
1212 public ModuleRegistrar ( ImmutableList < Register > mockRegistrations )
13- {
14- _registrations = mockRegistrations ;
15- }
13+ => _registrations = mockRegistrations ;
1614
1715 protected override void Load ( ContainerBuilder builder )
1816 => _registrations . ForEach ( registration => registration ( builder ) ) ;
You can’t perform that action at this time.
0 commit comments