Skip to content

Commit

Permalink
[enzyme-adapter-react-13] [refactor] remove unnecessary flatten sec…
Browse files Browse the repository at this point in the history
…ond arg
  • Loading branch information
ljharb committed Jul 30, 2018
1 parent e52a02d commit 4e839d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function elementToTree(el) {
const { children } = props;
let rendered = null;
if (isArrayLike(children)) {
rendered = flatten([...children], true).map(elementToTree);
rendered = flatten([...children]).map(elementToTree);
} else if (typeof children !== 'undefined') {
rendered = elementToTree(children);
}
Expand Down

0 comments on commit 4e839d3

Please sign in to comment.