Skip to content

Commit f5c2c7b

Browse files
committed
format
1 parent bbf21cd commit f5c2c7b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.Tests/Services/OpenApiDocumentServiceTestsBase.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,11 @@ public ControllerActionDescriptor CreateActionDescriptor(string methodName = nul
237237
action.RouteValues.Add("controller", "Test");
238238
action.RouteValues.Add("action", action.MethodInfo.Name);
239239
action.EndpointMetadata = [..action.MethodInfo.GetCustomAttributes()];
240-
action.ActionConstraints = [new HttpMethodActionConstraint(
241-
action.EndpointMetadata.OfType<IActionHttpMethodProvider>().SelectMany(a => a.HttpMethods).DefaultIfEmpty("GET")
240+
action.ActionConstraints = [new HttpMethodActionConstraint(action
241+
.EndpointMetadata
242+
.OfType<IActionHttpMethodProvider>()
243+
.SelectMany(a => a.HttpMethods)
244+
.DefaultIfEmpty("GET")
242245
)];
243246
if (controllerType is not null)
244247
{

0 commit comments

Comments
 (0)