@@ -936,7 +936,11 @@ export function appendChild(
936936 parentInstance : Instance ,
937937 child : Instance | TextInstance ,
938938) : void {
939- if ( enableMoveBefore && typeof ( parentInstance : any ) . moveBefore === 'function' && child . parentNode !== null ) {
939+ if (
940+ enableMoveBefore &&
941+ typeof ( parentInstance : any ) . moveBefore === 'function' &&
942+ child . parentNode !== null
943+ ) {
940944 // $FlowFixMe[prop-missing]: We've checked this above.
941945 parentInstance . moveBefore ( child , null ) ;
942946 } else {
@@ -997,7 +1001,11 @@ export function appendChildToContainer(
9971001 container . nodeType === COMMENT_NODE
9981002 ) {
9991003 parentNode = ( container . parentNode : any ) ;
1000- if ( enableMoveBefore && typeof parentNode . moveBefore === 'function' && child . parentNode !== null ) {
1004+ if (
1005+ enableMoveBefore &&
1006+ typeof parentNode . moveBefore === 'function' &&
1007+ child . parentNode !== null
1008+ ) {
10011009 // $FlowFixMe[prop-missing]: We've checked this above.
10021010 parentNode . moveBefore ( child , container ) ;
10031011 } else {
@@ -1009,7 +1017,11 @@ export function appendChildToContainer(
10091017 } else {
10101018 parentNode = ( container : any ) ;
10111019 }
1012- if ( enableMoveBefore && typeof parentNode . moveBefore === 'function' && child . parentNode !== null ) {
1020+ if (
1021+ enableMoveBefore &&
1022+ typeof parentNode . moveBefore === 'function' &&
1023+ child . parentNode !== null
1024+ ) {
10131025 // $FlowFixMe[prop-missing]: We've checked this above.
10141026 parentNode . moveBefore ( child , null ) ;
10151027 } else {
@@ -1039,7 +1051,11 @@ export function insertBefore(
10391051 child : Instance | TextInstance ,
10401052 beforeChild : Instance | TextInstance | SuspenseInstance | ActivityInstance ,
10411053) : void {
1042- if ( enableMoveBefore && typeof ( parentInstance : any ) . moveBefore === 'function' && child . parentNode !== null ) {
1054+ if (
1055+ enableMoveBefore &&
1056+ typeof ( parentInstance : any ) . moveBefore === 'function' &&
1057+ child . parentNode !== null
1058+ ) {
10431059 // $FlowFixMe[prop-missing]: We've checked this above.
10441060 parentInstance . moveBefore ( child , beforeChild ) ;
10451061 } else {
@@ -1068,7 +1084,11 @@ export function insertInContainerBefore(
10681084 } else {
10691085 parentNode = ( container : any ) ;
10701086 }
1071- if ( enableMoveBefore && typeof parentNode . moveBefore === 'function' && child . parentNode !== null ) {
1087+ if (
1088+ enableMoveBefore &&
1089+ typeof parentNode . moveBefore === 'function' &&
1090+ child . parentNode !== null
1091+ ) {
10721092 // $FlowFixMe[prop-missing]: We've checked this above.
10731093 parentNode . moveBefore ( child , beforeChild ) ;
10741094 } else {
0 commit comments