mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00: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
+2
-4
@@ -351,10 +351,8 @@ 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user