Skip to content

Commit 61981da

Browse files
committed
Fix $FlowFixMe
1 parent 96b675c commit 61981da

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/isomorphic/children/ReactChildren.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,15 @@ function getReactElementKey(element, index) {
6868
}
6969

7070
function traverseAllChildren<T: any, I>(
71-
children: T,
71+
children: T | null,
7272
nameSoFar: string,
73-
callback: (context: I, children: T, nameSoFar: string) => void,
73+
callback: (context: I, children: T | null, nameSoFar: string) => void,
7474
traverseContext: I,
7575
) {
7676
var type = typeof children;
7777

7878
if (type === 'undefined' || type === 'boolean') {
7979
// All of the above are perceived as null.
80-
// $FlowFixMe
8180
children = null;
8281
}
8382

@@ -144,7 +143,6 @@ function traverseAllChildren<T: any, I>(
144143
child = step != null ? (step.value: ReactElement) : null;
145144
nextName = nextNamePrefix + getReactElementKey(child, ii++);
146145
subtreeCount += traverseAllChildren(
147-
// $FlowFixMe
148146
child,
149147
nextName,
150148
callback,

0 commit comments

Comments
 (0)