Skip to content

Commit b3d040e

Browse files
committed
Rename predicate args
1 parent 619350e commit b3d040e

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
@@ -41,12 +41,12 @@ public static class OpenApiFilterService
4141
{
4242
if (operationIds == "*")
4343
{
44-
predicate = (url, operationType, o) => true; // All operations
44+
predicate = (url, operationType, operation) => true; // All operations
4545
}
4646
else
4747
{
4848
var operationIdsArray = operationIds.Split(',');
49-
predicate = (url, operationType, o) => operationIdsArray.Contains(o.OperationId);
49+
predicate = (url, operationType, operation) => operationIdsArray.Contains(operation.OperationId);
5050
}
5151
}
5252
else if (tags != null)
@@ -56,11 +56,11 @@ public static class OpenApiFilterService
5656
{
5757
var regex = new Regex(tagsArray[0]);
5858

59-
predicate = (url, operationType, o) => o.Tags.Any(tag => regex.IsMatch(tag.Name));
59+
predicate = (url, operationType, operation) => operation.Tags.Any(tag => regex.IsMatch(tag.Name));
6060
}
6161
else
6262
{
63-
predicate = (url, operationType, o) => o.Tags.Any(tag => tagsArray.Contains(tag.Name));
63+
predicate = (url, operationType, operation) => operation.Tags.Any(tag => tagsArray.Contains(tag.Name));
6464
}
6565
}
6666
else if (requestUrls != null)
@@ -96,7 +96,7 @@ public static class OpenApiFilterService
9696
}
9797

9898
// predicate for matching url and operationTypes
99-
predicate = (path, operationType, o) => operationTypes.Contains(operationType + path);
99+
predicate = (path, operationType, operation) => operationTypes.Contains(operationType + path);
100100
}
101101

102102
else

0 commit comments

Comments
 (0)