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.
This commit is contained in:
Martin Costello 2020-07-06 18:32:15 +01:00 committed by GitHub
parent 4b796c7bad
commit a97746b72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Hosting
{ {
public static class HostingAbstractionsWebHostBuilderExtensions public static class HostingAbstractionsWebHostBuilderExtensions
{ {
private static readonly string ServerUrlsSeparator = ";";
/// <summary> /// <summary>
/// Use the given configuration settings on the web host. /// Use the given configuration settings on the web host.
/// </summary> /// </summary>
@ -144,7 +142,7 @@ namespace Microsoft.AspNetCore.Hosting
throw new ArgumentNullException(nameof(urls)); throw new ArgumentNullException(nameof(urls));
} }
return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(ServerUrlsSeparator, urls)); return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(';', urls));
} }
/// <summary> /// <summary>