Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Run prettier
  • Loading branch information
koba04 committed Jun 29, 2017
commit a2bcddc44fe7fcbb4876c77c87cc36474105cc73
14 changes: 7 additions & 7 deletions src/isomorphic/children/ReactChildren.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ function getComponentKey(component, index) {
return index.toString(36);
}

function traverseAllChildren(
children,
nameSoFar,
callback,
traverseContext,
) {
function traverseAllChildren(children, nameSoFar, callback, traverseContext) {
var type = typeof children;

if (type === 'undefined' || type === 'boolean') {
Expand Down Expand Up @@ -191,7 +186,12 @@ function mapSingleChildIntoContext(bookKeeping, child, childKey) {
context: null,
count: 0,
};
traverseAllChildren(mappedChild, '', mapSingleChildIntoContext, traverseContext);
traverseAllChildren(
mappedChild,
'',
mapSingleChildIntoContext,
traverseContext,
);
} else {
if (ReactElement.isValidElement(mappedChild)) {
mappedChild = ReactElement.cloneAndReplaceKey(
Expand Down