mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
chore: remove unnecessary check (#6186)
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
This commit is contained in:
@@ -51,9 +51,6 @@ const defaults = {
|
|||||||
const isFormData = utils.isFormData(data);
|
const isFormData = utils.isFormData(data);
|
||||||
|
|
||||||
if (isFormData) {
|
if (isFormData) {
|
||||||
if (!hasJSONContentType) {
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user