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)
54
54
services . AddSingleton < IAssemblyInfoFileUpdater , AssemblyInfoFileUpdater > ( ) ;
55
55
services . AddSingleton < IProjectFileUpdater , ProjectFileUpdater > ( ) ;
56
56
57
- services . AddSingleton ( sp => sp . GetService < IConfigFileLocatorFactory > ( ) . Create ( ) ) ;
57
+ services . AddSingleton ( sp => sp . GetService < IConfigFileLocatorFactory > ( ) ? . Create ( ) ) ;
58
58
59
59
services . AddSingleton ( sp =>
60
60
{
61
61
var options = sp . GetService < IOptions < GitVersionOptions > > ( ) ;
62
62
var contextFactory = sp . GetService < IGitVersionContextFactory > ( ) ;
63
- return new Lazy < GitVersionContext > ( ( ) => contextFactory . Create ( options . Value ) ) ;
63
+ return new Lazy < GitVersionContext > ( ( ) => contextFactory ? . Create ( options ? . Value ) ) ;
64
64
} ) ;
65
65
66
66
67
67
services . AddModule ( new BuildServerModule ( ) ) ;
68
- services . AddSingleton ( sp => sp . GetService < IBuildAgentResolver > ( ) . Resolve ( ) ) ;
68
+ services . AddSingleton ( sp => sp . GetService < IBuildAgentResolver > ( ) ? . Resolve ( ) ) ;
69
69
70
70
services . AddModule ( new GitVersionInitModule ( ) ) ;
71
71
services . AddModule ( new VersionStrategyModule ( ) ) ;
You can’t perform that action at this time.
0 commit comments