Skip to content

Commit 2f37136

Browse files
committed
Remove redundant code path
1 parent 223b1a9 commit 2f37136

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

array-flatten.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,5 @@ function flatten (array, result, depth) {
2626
* @return {Array}
2727
*/
2828
module.exports = function (array, depth) {
29-
if (depth < 1) {
30-
return Array.prototype.slice.call(array);
31-
}
32-
3329
return flatten(array, [], depth || Infinity);
3430
};

0 commit comments

Comments
 (0)