From f4da80e7c65a3e987943bb4706eb53a07b1fc9bd Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 6 Dec 2014 14:40:47 -0800 Subject: [PATCH] No need to assign the rusult of `mergeData`. --- lodash.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 7215ef70f..dd5ff7e5f 100644 --- a/lodash.js +++ b/lodash.js @@ -3150,7 +3150,7 @@ newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, arity, ary]; if (data && data !== true) { - newData = mergeData(newData, data); + mergeData(newData, data); } newData[8] = newData[8] == null ? (isBindKey ? 0 : newData[0].length) @@ -3424,6 +3424,7 @@ var isCombo = (newBitmask >= arityFlags && newBitmask <= comboFlags) && (bitmask < ARY_FLAG || ((isRearg || isAry) && argPos[0].length <= ary)); + // Exit early if metadata can't be merged. if (!(isCommon || isCombo)) { return data; }