2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-27 14:47:43 +03:00

chore: remove unnecessary check (#6186)

Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
This commit is contained in:
zhoulixiang
2024-01-26 02:46:53 +08:00
committed by GitHub
parent 1a08f90f40
commit 2b69888dd5
-3
View File
@@ -51,9 +51,6 @@ const defaults = {
const isFormData = utils.isFormData(data);
if (isFormData) {
if (!hasJSONContentType) {
return data;
}
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
}