Skip to content

Commit d38594a

Browse files
committed
Use Count() for clarity and performance gain
1 parent 0b389b5 commit d38594a

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
@@ -272,7 +272,7 @@ private static async Task<OpenApiDocument> GetOpenApi(HidiOptions options, ILogg
272272
predicate = OpenApiFilterService.CreatePredicate(tags: filterByTags);
273273

274274
}
275-
if (requestUrls.Any())
275+
if (requestUrls.Count != 0)
276276
{
277277
logger.LogTrace("Creating predicate based on the paths and Http methods defined in the Postman collection.");
278278
predicate = OpenApiFilterService.CreatePredicate(requestUrls: requestUrls, source: document);

0 commit comments

Comments
 (0)