mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
No need to assign the rusult of mergeData.
This commit is contained in:
@@ -3150,7 +3150,7 @@
|
|||||||
newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, arity, ary];
|
newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, arity, ary];
|
||||||
|
|
||||||
if (data && data !== true) {
|
if (data && data !== true) {
|
||||||
newData = mergeData(newData, data);
|
mergeData(newData, data);
|
||||||
}
|
}
|
||||||
newData[8] = newData[8] == null
|
newData[8] = newData[8] == null
|
||||||
? (isBindKey ? 0 : newData[0].length)
|
? (isBindKey ? 0 : newData[0].length)
|
||||||
@@ -3424,6 +3424,7 @@
|
|||||||
var isCombo = (newBitmask >= arityFlags && newBitmask <= comboFlags) &&
|
var isCombo = (newBitmask >= arityFlags && newBitmask <= comboFlags) &&
|
||||||
(bitmask < ARY_FLAG || ((isRearg || isAry) && argPos[0].length <= ary));
|
(bitmask < ARY_FLAG || ((isRearg || isAry) && argPos[0].length <= ary));
|
||||||
|
|
||||||
|
// Exit early if metadata can't be merged.
|
||||||
if (!(isCommon || isCombo)) {
|
if (!(isCommon || isCombo)) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user