File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Microsoft.OpenApi.Hidi/Utilities Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
+ using System ;
4
5
using System . IO ;
5
6
using Microsoft . Extensions . Configuration ;
6
7
using Microsoft . OpenApi . OData ;
@@ -27,7 +28,7 @@ internal static IConfiguration GetConfiguration(string? settingsFile = null)
27
28
28
29
internal static OpenApiConvertSettings GetOpenApiConvertSettings ( IConfiguration config , string ? metadataVersion )
29
30
{
30
- if ( config == null ) { throw new System . ArgumentNullException ( nameof ( config ) ) ; }
31
+ ArgumentNullException . ThrowIfNull ( config ) ;
31
32
var settings = new OpenApiConvertSettings ( ) ;
32
33
if ( ! string . IsNullOrEmpty ( metadataVersion ) )
33
34
settings . SemVerVersion = metadataVersion ;
You can’t perform that action at this time.
0 commit comments