diff --git a/src/plugins/jsx/index.js b/src/plugins/jsx/index.js index 905284d8ae..31094ddf3e 100644 --- a/src/plugins/jsx/index.js +++ b/src/plugins/jsx/index.js @@ -423,21 +423,13 @@ export default (superClass: Class): Class => } } - if ( - // $FlowIgnore - isFragment(openingElement) && - !isFragment(closingElement) - ) { + if (isFragment(openingElement) && !isFragment(closingElement)) { this.raise( // $FlowIgnore closingElement.start, "Expected corresponding JSX closing tag for <>", ); - } else if ( - // $FlowIgnore - !isFragment(openingElement) && - isFragment(closingElement) - ) { + } else if (!isFragment(openingElement) && isFragment(closingElement)) { this.raise( // $FlowIgnore closingElement.start, @@ -445,11 +437,7 @@ export default (superClass: Class): Class => getQualifiedJSXName(openingElement.name) + ">", ); - } else if ( - // $FlowIgnore - !isFragment(openingElement) && - !isFragment(closingElement) - ) { + } else if (!isFragment(openingElement) && !isFragment(closingElement)) { if ( // $FlowIgnore getQualifiedJSXName(closingElement.name) !== @@ -466,7 +454,6 @@ export default (superClass: Class): Class => } } - // $FlowIgnore if (isFragment(openingElement)) { node.openingFragment = openingElement; node.closingFragment = closingElement; @@ -482,7 +469,6 @@ export default (superClass: Class): Class => ); } - // $FlowIgnore return isFragment(openingElement) ? this.finishNode(node, "JSXFragment") : this.finishNode(node, "JSXElement");