From 3ac6cc4d61dbb932c09e2d192866c008101c9430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20Bartha?= Date: Thu, 18 May 2023 15:03:14 +0200 Subject: [PATCH] Fixing logic --- Lombiq.Hosting.Tenants.Maintenance/Helpers/TenantUrlHelpers.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lombiq.Hosting.Tenants.Maintenance/Helpers/TenantUrlHelpers.cs b/Lombiq.Hosting.Tenants.Maintenance/Helpers/TenantUrlHelpers.cs index 45ccbaca..9da8aaf5 100644 --- a/Lombiq.Hosting.Tenants.Maintenance/Helpers/TenantUrlHelpers.cs +++ b/Lombiq.Hosting.Tenants.Maintenance/Helpers/TenantUrlHelpers.cs @@ -18,8 +18,7 @@ public static string GetEvaluatedValueForTenant( var evaluatedValue = !string.IsNullOrEmpty(valueForAnyTenant) ? ReplaceTenantName(valueForAnyTenant, shellSettings.Name) : string.Empty; - var evaluatedValueForDefaultTenant = valueForDefaultTenant ?? evaluatedValue; - return shellSettings.IsDefaultShell() ? evaluatedValueForDefaultTenant : evaluatedValue; + return shellSettings.IsDefaultShell() ? valueForDefaultTenant : evaluatedValue; } }