We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e46d78 commit 83f30b6Copy full SHA for 83f30b6
src/Http/Routing/src/ValidationEndpointFilterFactory.cs
@@ -103,13 +103,13 @@ public static EndpointFilterDelegate Create(EndpointFilterFactoryContext context
103
{
104
// We need to prevent further execution, because the actual
105
// ProblemDetails response has already been written by ProblemDetailsService.
106
- return await ValueTask.FromResult(EmptyHttpResult.Instance);
+ return EmptyHttpResult.Instance;
107
}
108
109
110
// Fallback to the default implementation.
111
context.HttpContext.Response.ContentType = MediaTypeNames.Application.ProblemJson;
112
- return await ValueTask.FromResult(problemDetails);
+ return problemDetails;
113
114
115
return await next(context);
0 commit comments