Skip to content

Commit

Permalink
Remove extra check from httpClient.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Dec 13, 2023
1 parent f247d71 commit a3aed57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/httpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class HttpClient {
throw newError;
}

const status = error.response && error.response.status || error.status;
const status = error.status;
let level = 'warn';
let message = 'HttpClient Response Error';
if (!error) {
Expand All @@ -132,7 +132,7 @@ class HttpClient {
url: url,
status: status,
data: resolvedError,
headers: error.response.headers || error.headers
headers: error.headers
};
throw httpError;
}
Expand Down

0 comments on commit a3aed57

Please sign in to comment.