Prettier
Brian Vaughn committed
Apr 25, 2017 at 10:19 UTC
81336fd8ced2ff92648f87d9a46e5f1feef1a16e
1 file changed
+3
-1
src/isomorphic/children/traverseAllChildren.js
+3
-1
@@ -49,7 +49,9 @@ function getComponentKey(component, index) {
49
// Do some typechecking here since we call this blindly. We want to ensure
50
// that we don't block potential future ES APIs.
51
if (
52
- typeof component === 'object' && component !== null && component.key != null
52
+ typeof component === 'object' &&
53
+ component !== null &&
54
+ component.key != null
55
) {
56
// Explicit key
57
return KeyEscapeUtils.escape(component.key);