Skip to content

Commit 385e5af

Browse files
committed
Clean up
1 parent b8d0d2b commit 385e5af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System;
@@ -356,10 +356,10 @@ internal static async void ValidateOpenApiDocument(string openapi, LogLevel logl
356356
Console.WriteLine(statsVisitor.GetStatisticsReport());
357357
}
358358

359-
private static OpenApiFormat GetOpenApiFormat(string openapi, ILogger logger)
359+
private static OpenApiFormat GetOpenApiFormat(string input, ILogger logger)
360360
{
361361
logger.LogTrace("Getting the OpenApi format");
362-
return !openapi.StartsWith("http") && Path.GetExtension(openapi) == ".json" ? OpenApiFormat.Json : OpenApiFormat.Yaml;
362+
return !input.StartsWith("http") && Path.GetExtension(input) == ".json" ? OpenApiFormat.Json : OpenApiFormat.Yaml;
363363
}
364364

365365
private static ILogger ConfigureLoggerInstance(LogLevel loglevel)

0 commit comments

Comments
 (0)