Skip to content

Commit a97746b

Browse files
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.
1 parent 4b796c7 commit a97746b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Hosting
1313
{
1414
public static class HostingAbstractionsWebHostBuilderExtensions
1515
{
16-
private static readonly string ServerUrlsSeparator = ";";
17-
1816
/// <summary>
1917
/// Use the given configuration settings on the web host.
2018
/// </summary>
@@ -144,7 +142,7 @@ public static IWebHostBuilder UseUrls(this IWebHostBuilder hostBuilder, params s
144142
throw new ArgumentNullException(nameof(urls));
145143
}
146144

147-
return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(ServerUrlsSeparator, urls));
145+
return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(';', urls));
148146
}
149147

150148
/// <summary>

0 commit comments

Comments
 (0)