From 62cc7574fc39d6cb8da6ec1e2bfd99c2dcf7b0a9 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 4 Mar 2016 10:41:09 -0800 Subject: [PATCH] Remove dead code branch from `baseCastPath`. --- lodash.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index dc2190910..8f3552b25 100644 --- a/lodash.js +++ b/lodash.js @@ -2339,10 +2339,9 @@ * @returns {Array} Returns the cast property path array. */ function baseCastPath(value) { - if (isArray(value)) { - return value; - } - return isSymbol(value) ? [value] : stringToPath(value); + return isArray(value) + ? value + : stringToPath(value); } /**