Skip to content

Commit 0cf947b

Browse files
committed
Address PR feedback
1 parent b3d040e commit 0cf947b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Microsoft.OpenApi/Services/OpenApiFilterService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ public static class OpenApiFilterService
6565
}
6666
else if (requestUrls != null)
6767
{
68-
List<string> operationTypes = new List<string>();
68+
var operationTypes = new List<string>();
6969

70-
var graphVersion = source.Info.Version;
70+
var apiVersion = source.Info.Version;
7171

72-
var sources = new Dictionary<string, OpenApiDocument> {{graphVersion, source}};
72+
var sources = new Dictionary<string, OpenApiDocument> {{ apiVersion, source}};
7373
var rootNode = CreateOpenApiUrlTreeNode(sources);
7474

7575
//Iterate through urls dictionary and fetch operations for each url
@@ -78,7 +78,7 @@ public static class OpenApiFilterService
7878
var serverList = source.Servers;
7979
var url = FormatUrlString(path.Key, serverList);
8080

81-
var openApiOperations = GetOpenApiOperations(rootNode, url, graphVersion);
81+
var openApiOperations = GetOpenApiOperations(rootNode, url, apiVersion);
8282
if (openApiOperations == null)
8383
{
8484
continue;
@@ -90,7 +90,7 @@ public static class OpenApiFilterService
9090
}
9191
}
9292

93-
if (!(bool)operationTypes?.Any())
93+
if (!operationTypes.Any())
9494
{
9595
throw new ArgumentException("The urls in the postman collection supplied could not be found.");
9696
}

0 commit comments

Comments
 (0)