Cleanup
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user