mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor - inline temp variable
This commit is contained in:
parent
77f3f63d1f
commit
2ba3317324
1 changed files with 1 additions and 2 deletions
|
|
@ -44,8 +44,7 @@ public void UpdateTable(string tableName)
|
|||
/// <returns>string of file</returns>
|
||||
private static async Task<string> FetchFile(string url, string fileName)
|
||||
{
|
||||
var client = new HttpClient();
|
||||
var response = await client.GetAsync(url);
|
||||
var response = await new HttpClient().GetAsync(url);
|
||||
response.EnsureSuccessStatusCode();
|
||||
var path = Path.Combine(Directory.GetCurrentDirectory(), "csv");
|
||||
Directory.CreateDirectory(path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue