fixed duplicated/redundant if-statement in original JSXTransformer