Loop is not neccessary for checking createSelectorForSilentRouteProviders when first routeProvider is not IActionHttpMethodProvider (#10683)

This is just some code cleanup that makes the intent of some complicated code more clear.
This commit is contained in:
WuYafeng 2019-06-01 02:19:10 +08:00 committed by Ryan Nowak
parent 71c91f310f
commit 089fc88644
1 changed files with 1 additions and 0 deletions

View File

@ -565,6 +565,7 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationModels
if (!(routeProvider is IActionHttpMethodProvider))
{
createSelectorForSilentRouteProviders = false;
break;
}
}