Skip to content

Commit 2645555

Browse files
committed
Use else if() clause
1 parent 7731e6d commit 2645555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ private static string GetInputPathExtension(string openapi = null, string csdl =
581581
{
582582
extension = Path.GetExtension(openapi);
583583
}
584-
if (!string.IsNullOrEmpty(csdl))
584+
else if (!string.IsNullOrEmpty(csdl))
585585
{
586586
extension = ".yml";
587587
}

0 commit comments

Comments
 (0)