File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,18 @@ public void RegisterTypes(IServiceCollection services)
5454 services . AddSingleton < IAssemblyInfoFileUpdater , AssemblyInfoFileUpdater > ( ) ;
5555 services . AddSingleton < IProjectFileUpdater , ProjectFileUpdater > ( ) ;
5656
57- services . AddSingleton ( sp => sp . GetService < IConfigFileLocatorFactory > ( ) . Create ( ) ) ;
57+ services . AddSingleton ( sp => sp . GetService < IConfigFileLocatorFactory > ( ) ? . Create ( ) ) ;
5858
5959 services . AddSingleton ( sp =>
6060 {
6161 var options = sp . GetService < IOptions < GitVersionOptions > > ( ) ;
6262 var contextFactory = sp . GetService < IGitVersionContextFactory > ( ) ;
63- return new Lazy < GitVersionContext > ( ( ) => contextFactory . Create ( options . Value ) ) ;
63+ return new Lazy < GitVersionContext > ( ( ) => contextFactory ? . Create ( options ? . Value ) ) ;
6464 } ) ;
6565
6666
6767 services . AddModule ( new BuildServerModule ( ) ) ;
68- services . AddSingleton ( sp => sp . GetService < IBuildAgentResolver > ( ) . Resolve ( ) ) ;
68+ services . AddSingleton ( sp => sp . GetService < IBuildAgentResolver > ( ) ? . Resolve ( ) ) ;
6969
7070 services . AddModule ( new GitVersionInitModule ( ) ) ;
7171 services . AddModule ( new VersionStrategyModule ( ) ) ;
You can’t perform that action at this time.
0 commit comments