This commit is contained in:
Bjarke Berg
2021-02-08 11:21:55 +01:00
parent fea86bbf7a
commit b4f5fa1e19
4 changed files with 2 additions and 5 deletions

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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);