Skip to content

Commit e5a07d0

Browse files
committed
Add missing using for HttpClient
1 parent 0c6dfee commit e5a07d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/Schema.NET.Updater/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class Program
1616
private static async Task Main()
1717
{
1818
Console.WriteLine("Downloading '{0}'...", SchemaJsonSourceUrl);
19-
var httpClient = new HttpClient();
19+
using var httpClient = new HttpClient();
2020
using var stream = await httpClient.GetStreamAsync(SchemaJsonSourceUrl).ConfigureAwait(true);
2121
Console.WriteLine("Saving to '{0}'...", SchemaJsonDestinationFilePath);
2222
using var fileStream = File.Open(SchemaJsonDestinationFilePath, FileMode.Create);

0 commit comments

Comments
 (0)