Skip to content

Commit 83f30b6

Browse files
authored
Apply suggestions from code review
1 parent 2e46d78 commit 83f30b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Routing/src/ValidationEndpointFilterFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ public static EndpointFilterDelegate Create(EndpointFilterFactoryContext context
103103
{
104104
// We need to prevent further execution, because the actual
105105
// ProblemDetails response has already been written by ProblemDetailsService.
106-
return await ValueTask.FromResult(EmptyHttpResult.Instance);
106+
return EmptyHttpResult.Instance;
107107
}
108108
}
109109

110110
// Fallback to the default implementation.
111111
context.HttpContext.Response.ContentType = MediaTypeNames.Application.ProblemJson;
112-
return await ValueTask.FromResult(problemDetails);
112+
return problemDetails;
113113
}
114114

115115
return await next(context);

0 commit comments

Comments
 (0)