Skip to content

Commit

Permalink
fix: Remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpope committed May 13, 2020
1 parent d8e7317 commit d295ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VatLayerExternalSearchProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public override IEnumerable<IExternalSearchQueryResult> ExecuteSearch(ExecutionC
var client = new RestClient("http://www.apilayer.net/api");
var request = new RestRequest($"validate?access_key={TokenProvider.ApiToken}&vat_number={vat}&format=1",
Method.GET);
var response = client.ExecuteTaskAsync<VatLayerResponse>(request).Result;
var response = client.ExecuteAsync<VatLayerResponse>(request).Result;

if (response.StatusCode == HttpStatusCode.OK)
{
Expand Down

0 comments on commit d295ab2

Please sign in to comment.