Check if value is false consistently

This commit is contained in:
Nikolaj
2023-02-21 15:37:49 +01:00
parent 3608540d45
commit 74f7ab4e1a

View File

@@ -125,12 +125,12 @@ _cleanedUmbracoUrl ??= _uriUtility.UriToUmbraco(OriginalRequestUrl);
{
get
{
if (!_hostingEnvironment.IsDebugMode)
if (_hostingEnvironment.IsDebugMode is false)
{
return false;
}
if(string.IsNullOrEmpty(_httpContextAccessor.HttpContext?.GetRequestValue("umbdebugshowtrace")) == false)
if(string.IsNullOrEmpty(_httpContextAccessor.HttpContext?.GetRequestValue("umbdebugshowtrace")) is false)
{
return true;
}