2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

refactor: change if in else to else if (#7028)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Noritaka Kobayashi
2025-09-14 18:53:01 +09:00
committed by GitHub
parent cf78825e12
commit 38726c7586
+2 -4
View File
@@ -351,10 +351,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
result[targetKey] = merge({}, val);
} else if (isArray(val)) {
result[targetKey] = val.slice();
} else {
if (!skipUndefined || !isUndefined(val)) {
result[targetKey] = val;
}
} else if (!skipUndefined || !isUndefined(val)) {
result[targetKey] = val;
}
}