Skip to content

Commit 38726c7

Browse files
refactor: change if in else to else if (#7028)
Co-authored-by: Jay <[email protected]>
1 parent cf78825 commit 38726c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/utils.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
351351
result[targetKey] = merge({}, val);
352352
} else if (isArray(val)) {
353353
result[targetKey] = val.slice();
354-
} else {
355-
if (!skipUndefined || !isUndefined(val)) {
356-
result[targetKey] = val;
357-
}
354+
} else if (!skipUndefined || !isUndefined(val)) {
355+
result[targetKey] = val;
358356
}
359357
}
360358

0 commit comments

Comments
 (0)