mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove an unnecessary condition
This commit is contained in:
committed by
Brian Vaughn
parent
2464cd2d53
commit
080f21e64f
@@ -96,11 +96,7 @@ const NativeRenderer = ReactFiberReconciler({
|
||||
},
|
||||
|
||||
appendInitialChild(parentInstance : Instance, child : Instance | TextInstance) : void {
|
||||
if (typeof child === 'number') {
|
||||
parentInstance._children.push(child);
|
||||
} else {
|
||||
parentInstance._children.push(child);
|
||||
}
|
||||
parentInstance._children.push(child);
|
||||
},
|
||||
|
||||
commitTextUpdate(
|
||||
|
||||
Reference in New Issue
Block a user