Remove dead code branch from baseCastPath.

This commit is contained in:
John-David Dalton
2016-03-04 10:41:09 -08:00
parent f5a134bcbd
commit 62cc7574fc

View File

@@ -2339,10 +2339,9 @@
* @returns {Array} Returns the cast property path array. * @returns {Array} Returns the cast property path array.
*/ */
function baseCastPath(value) { function baseCastPath(value) {
if (isArray(value)) { return isArray(value)
return value; ? value
} : stringToPath(value);
return isSymbol(value) ? [value] : stringToPath(value);
} }
/** /**