Merge null check expressions.

pull/2880/head
maliming 5 years ago
parent adeeb0d5a1
commit f20a6f0d43

@ -65,13 +65,8 @@ namespace Volo.Abp.AspNetCore.Auditing
}
var endpoint = httpContext.GetEndpoint();
if (endpoint == null)
{
return false;
}
var actionDescriptor = endpoint.Metadata.GetMetadata<ActionDescriptor>();
if (actionDescriptor != null && !(actionDescriptor is ControllerActionDescriptor))
var actionDescriptor = endpoint?.Metadata.GetMetadata<ActionDescriptor>();
if (!(actionDescriptor is ControllerActionDescriptor))
{
return false;
}

Loading…
Cancel
Save