Skip to content

Commit b09e71a

Browse files
adj
1 parent fdc2459 commit b09e71a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/generation/generate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9255,10 +9255,10 @@ fn gen_jsx_children<'a>(opts: GenJsxChildrenOptions<'a>, context: &mut Context<'
92559255

92569256
fn has_jsx_trailing_space<'a>(current_node: Node<'a>, previous_node: Option<Node<'a>>, context: &Context<'a>) -> bool {
92579257
if let Node::JSXText(text) = current_node {
9258-
if previous_node.map_or(false, |prev| is_ignore_jsx_expr_container(prev, context)) {
9258+
if matches!(previous_node, Some(previous_node) if is_ignore_jsx_expr_container(previous_node, context)) {
92599259
return false;
92609260
}
9261-
9261+
92629262
let text = text.text_fast(context.program);
92639263
text.ends_with(' ') && utils::has_no_new_lines_in_trailing_whitespace(text)
92649264
} else {

0 commit comments

Comments
 (0)