style: delete unused isHost check (#21203)

This commit is contained in:
wangao authored and GitHub committed 2021-04-08 13:58:24 +01:00
1 parent 782f689ca8
commit 1a02d2792e
2 files changed
+4 -4

No files matched your search

@@ -1613,7 +1613,7 @@ function insertOrAppendPlacementNodeIntoContainer(
const {tag} = node;
const isHost = tag === HostComponent || tag === HostText;
if (isHost) {
const stateNode = isHost ? node.stateNode : node.stateNode.instance;
const stateNode = node.stateNode;
if (before) {
insertInContainerBefore(parent, stateNode, before);
} else {
@@ -1644,7 +1644,7 @@ function insertOrAppendPlacementNode(
const {tag} = node;
const isHost = tag === HostComponent || tag === HostText;
if (isHost) {
const stateNode = isHost ? node.stateNode : node.stateNode.instance;
const stateNode = node.stateNode;
if (before) {
insertBefore(parent, stateNode, before);
} else {
@@ -1613,7 +1613,7 @@ function insertOrAppendPlacementNodeIntoContainer(
const {tag} = node;
const isHost = tag === HostComponent || tag === HostText;
if (isHost) {
const stateNode = isHost ? node.stateNode : node.stateNode.instance;
const stateNode = node.stateNode;
if (before) {
insertInContainerBefore(parent, stateNode, before);
} else {
@@ -1644,7 +1644,7 @@ function insertOrAppendPlacementNode(
const {tag} = node;
const isHost = tag === HostComponent || tag === HostText;
if (isHost) {
const stateNode = isHost ? node.stateNode : node.stateNode.instance;
const stateNode = node.stateNode;
if (before) {
insertBefore(parent, stateNode, before);
} else {