diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs index 0e7cbfe839..d8869e12fa 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs @@ -10,7 +10,6 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using Umbraco.Core.Hosting; using Umbraco.Core.Services; -using Umbraco.Web; namespace Umbraco.Core.HealthChecks.Checks.Security { diff --git a/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs b/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs index a020f04b16..f0acd22230 100644 --- a/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs +++ b/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs @@ -11,7 +11,6 @@ using Umbraco.Core.Configuration.Models; using Umbraco.Core.Hosting; using Umbraco.Core.Logging; using Umbraco.Core.Sync; -using Umbraco.Web; namespace Umbraco.Infrastructure.HostedServices { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs index 67c83e0642..8eca24a724 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs @@ -18,7 +18,6 @@ using Umbraco.Core.Logging; using Umbraco.Core.Scoping; using Umbraco.Core.Sync; using Umbraco.Infrastructure.HostedServices; -using Umbraco.Web; namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs index cdac7c562e..ac306809db 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs @@ -142,7 +142,7 @@ namespace Umbraco.Web.Common.AspNetCore // (this is a simplified version of what was in 7.x) // note: should this be optional? is it expensive? - if (currentApplicationUrl == null) + if (currentApplicationUrl is null) { return; } @@ -152,7 +152,7 @@ namespace Umbraco.Web.Common.AspNetCore return; } - var change = currentApplicationUrl != null && !_applicationUrls.Contains(currentApplicationUrl); + var change = !_applicationUrls.Contains(currentApplicationUrl); if (change) { _applicationUrls.Add(currentApplicationUrl);