Skip to content

Commit

Permalink
[Refactor] RSTTraversal: remove unnecessary adapter truthiness check
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 27, 2018
1 parent 316c7c3 commit 394a327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/enzyme/src/RSTTraversal.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function childrenOfNode(node) {
if (!node) return [];

const adapter = getAdapter();
const adapterHasIsFragment = adapter && adapter.isFragment && (typeof adapter.isFragment === 'function');
const adapterHasIsFragment = adapter.isFragment && typeof adapter.isFragment === 'function';

const renderedArray = Array.isArray(node.rendered) ? flat(node.rendered, 1) : [node.rendered];

Expand Down

0 comments on commit 394a327

Please sign in to comment.