Skip to content

Commit

Permalink
chore: remove unnecessary check (#6186)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
  • Loading branch information
zh-lx and DigitalBrainJS committed Jan 25, 2024
1 parent 1a08f90 commit 2b69888
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/defaults/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ const defaults = {
const isFormData = utils.isFormData(data);

if (isFormData) {
if (!hasJSONContentType) {
return data;
}
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
}

Expand Down

0 comments on commit 2b69888

Please sign in to comment.