From a97746b72bed4642dfca448b80de19358cb4e6be Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Mon, 6 Jul 2020 18:32:15 +0100 Subject: [PATCH] Remove used-once field (#23693) Remove a field that's only used in one place, and just pass the char directly to string.Join() on use. --- .../src/HostingAbstractionsWebHostBuilderExtensions.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs b/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs index 1aac2e31d1..3b14957ba4 100644 --- a/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs +++ b/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs @@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Hosting { public static class HostingAbstractionsWebHostBuilderExtensions { - private static readonly string ServerUrlsSeparator = ";"; - /// /// Use the given configuration settings on the web host. /// @@ -144,7 +142,7 @@ namespace Microsoft.AspNetCore.Hosting throw new ArgumentNullException(nameof(urls)); } - return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(ServerUrlsSeparator, urls)); + return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(';', urls)); } ///