Skip to content

Commit c956136

Browse files
Fix matched pattern for implicit type
1 parent 19bc132 commit c956136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AspNetCore/OData/src/Asp.Versioning.OData/OData/Batch/ODataBatchPathMapping.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public bool TryGetHandler( HttpContext context, [NotNullWhen( true )] out ODataB
5959
var routeData = new RouteValueDictionary();
6060
var candidates = new Dictionary<ApiVersion, int>( capacity: mappings.Length );
6161

62-
if ( SelectExactMatch( context, routeData, candidates ) is { } handler )
62+
if ( SelectExactMatch( context, routeData, candidates ) is var handler )
6363
{
64-
return ValueTask.FromResult<ODataBatchHandler?>( handler );
64+
return ValueTask.FromResult( handler );
6565
}
6666

6767
return SelectBestCandidateAsync( context, candidates, routeData, cancellationToken );

0 commit comments

Comments
 (0)