From 2ba331732480f1ff96dd4e6fbdce579648b4f9e7 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 25 Jun 2017 17:54:21 -0500 Subject: [PATCH] refactor - inline temp variable --- src/FilterLists.Services/Implementations/TableService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FilterLists.Services/Implementations/TableService.cs b/src/FilterLists.Services/Implementations/TableService.cs index 612011a56..5464e6a36 100644 --- a/src/FilterLists.Services/Implementations/TableService.cs +++ b/src/FilterLists.Services/Implementations/TableService.cs @@ -44,8 +44,7 @@ public void UpdateTable(string tableName) /// string of file private static async Task 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);