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
Fix $FlowFixMe
  • Loading branch information
koba04 committed Jun 29, 2017
commit 61981da8e40238d821a5b06552519f0e9719dd31
6 changes: 2 additions & 4 deletions src/isomorphic/children/ReactChildren.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,15 @@ function getReactElementKey(element, index) {
}

function traverseAllChildren<T: any, I>(
children: T,
children: T | null,
nameSoFar: string,
callback: (context: I, children: T, nameSoFar: string) => void,
callback: (context: I, children: T | null, nameSoFar: string) => void,
traverseContext: I,
) {
var type = typeof children;

if (type === 'undefined' || type === 'boolean') {
// All of the above are perceived as null.
// $FlowFixMe
children = null;
}

Expand Down Expand Up @@ -144,7 +143,6 @@ function traverseAllChildren<T: any, I>(
child = step != null ? (step.value: ReactElement) : null;
nextName = nextNamePrefix + getReactElementKey(child, ii++);
subtreeCount += traverseAllChildren(
// $FlowFixMe
child,
nextName,
callback,
Expand Down