Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrosMor committed Dec 20, 2018
1 parent f5d27ef commit 6d028b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Adyen.EcommLibrary/HttpClient/HttpURLConnectionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ public string Request(string endpoint, string json, Config config, bool isApiKey
catch (WebException e)
{
var response = (HttpWebResponse)e.Response;
var httpClientException = new HttpClientException((int)response.StatusCode, "HTTP Exception",
response.Headers, response.StatusDescription);
throw httpClientException;
throw new HttpClientException((int)response.StatusCode, "HTTP Exception", response.Headers, response.StatusDescription);
}
return responseText;
}
Expand Down

0 comments on commit 6d028b6

Please sign in to comment.