diff options
author | Stephen Halter <halter73@gmail.com> | 2022-09-01 04:44:34 +0300 |
---|---|---|
committer | Stephen Halter <halter73@gmail.com> | 2022-09-01 04:44:34 +0300 |
commit | 019d32d8e8691bee2ef3aa3371ee0ef9638f0d13 (patch) | |
tree | 5102435a80e430f6d71c0255f793a77c02a62392 | |
parent | 0e56b6c8670db273b13f2cc53f4306090e7e69f8 (diff) |
Address more PR feedbackhalter73/43000-complete
-rw-r--r-- | src/Http/Routing/src/EndpointDataSource.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Http/Routing/src/EndpointDataSource.cs b/src/Http/Routing/src/EndpointDataSource.cs index 9d5e058654..c6a2fd7944 100644 --- a/src/Http/Routing/src/EndpointDataSource.cs +++ b/src/Http/Routing/src/EndpointDataSource.cs @@ -52,9 +52,7 @@ public abstract class EndpointDataSource // Make the full route pattern visible to IEndpointConventionBuilder extension methods called on the group. // This includes patterns from any parent groups. var fullRoutePattern = RoutePatternFactory.Combine(context.Prefix, routeEndpoint.RoutePattern); - - // RequestDelegate can never be null on a RouteEndpoint. The nullability carries over from Endpoint. - var routeEndpointBuilder = new RouteEndpointBuilder(routeEndpoint.RequestDelegate!, fullRoutePattern, routeEndpoint.Order) + var routeEndpointBuilder = new RouteEndpointBuilder(routeEndpoint.RequestDelegate, fullRoutePattern, routeEndpoint.Order) { DisplayName = routeEndpoint.DisplayName, ApplicationServices = context.ApplicationServices, |