Remove an unnecessary condition
Toru Kobayashi committed
Feb 7, 2017 at 16:03 UTC
080f21e64f28552bd63590db0b470d15d1990c96
1 file changed
+1
-5
src/renderers/native/ReactNativeFiber.js
+1
-5
@@ -96,11 +96,7 @@ const NativeRenderer = ReactFiberReconciler({
96
},
97
98
appendInitialChild(parentInstance : Instance, child : Instance | TextInstance) : void {
99
- if (typeof child === 'number') {
100
- parentInstance._children.push(child);
101
- } else {
102
- parentInstance._children.push(child);
103
- }
99
+ parentInstance._children.push(child);
100
},
101
102
commitTextUpdate(