mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
refactor: change if in else to else if (#7028)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
committed by
GitHub
parent
cf78825e12
commit
38726c7586
+1
-3
@@ -351,12 +351,10 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|||||||
result[targetKey] = merge({}, val);
|
result[targetKey] = merge({}, val);
|
||||||
} else if (isArray(val)) {
|
} else if (isArray(val)) {
|
||||||
result[targetKey] = val.slice();
|
result[targetKey] = val.slice();
|
||||||
} else {
|
} else if (!skipUndefined || !isUndefined(val)) {
|
||||||
if (!skipUndefined || !isUndefined(val)) {
|
|
||||||
result[targetKey] = val;
|
result[targetKey] = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0, l = arguments.length; i < l; i++) {
|
for (let i = 0, l = arguments.length; i < l; i++) {
|
||||||
arguments[i] && forEach(arguments[i], assignValue);
|
arguments[i] && forEach(arguments[i], assignValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user