Skip to content

Commit

Permalink
chore: refactor logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Sankeerth committed Sep 5, 2024
1 parent 054614d commit c54dbe5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/v0/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1554,11 +1554,8 @@ const getErrorStatusCode = (error, defaultStatusCode = HTTP_STATUS_CODES.INTERNA

function isAxiosError(err) {
return (
!!err?.config &&
Array.isArray(err?.config?.adapter) &&
err?.config?.adapter.length > 1 &&
!!err?.request &&
!!err?.request?.socket &&
err?.config?.adapter?.length > 1 &&
typeof err?.request?.socket === 'object' &&
!!err?.request?.protocol &&
!!err?.request?.method &&
Expand Down

0 comments on commit c54dbe5

Please sign in to comment.