Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Apr 25, 2017
1 parent 0e587c1 commit 81336fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/isomorphic/children/traverseAllChildren.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ function getComponentKey(component, index) {
// Do some typechecking here since we call this blindly. We want to ensure
// that we don't block potential future ES APIs.
if (
typeof component === 'object' && component !== null && component.key != null
typeof component === 'object' &&
component !== null &&
component.key != null
) {
// Explicit key
return KeyEscapeUtils.escape(component.key);
Expand Down

0 comments on commit 81336fd

Please sign in to comment.