Skip to content

Commit

Permalink
Update Src/VTEX/VTEXWrapper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Jan 9, 2025
1 parent 9160461 commit 795b5c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Src/VTEX/VTEXWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ private async Task<string> ServiceInvokerInternal(

var cookieContainer = new CookieContainer();

using var handler = new HttpClientHandler { CookieContainer = cookieContainer };

using var client = new HttpClient(handler);
var handler = new HttpClientHandler { CookieContainer = cookieContainer };

Check notice on line 165 in Src/VTEX/VTEXWrapper.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Src/VTEX/VTEXWrapper.cs#L165

Remove the unused local variable 'handler'.
var client = _httpClientFactory.CreateClient();

ConfigureClient(client, requiresAuthentication);

Expand Down

0 comments on commit 795b5c2

Please sign in to comment.