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:
parent
71c91f310f
commit
089fc88644
|
|
@ -565,6 +565,7 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationModels
|
|||
if (!(routeProvider is IActionHttpMethodProvider))
|
||||
{
|
||||
createSelectorForSilentRouteProviders = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue