Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Iha Shin (신의하) <[email protected]>
  • Loading branch information
notJoon and XiNiHa authored Oct 17, 2024
1 parent ed13409 commit eb8ffb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/core/src/shared/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ impl<'a> JsxTransform {
el: &ast::JSXElement<'a>,
ctx: &mut TraverseCtx<'a>,
) -> TransformResult<'a> {
let tag_name = match el.opening_element.name {
ast::JSXElementName::Identifier(ref ident) => ident.name.clone(),
let tag_name = match &el.opening_element.name {
ast::JSXElementName::Identifier(ident) => ident.name.clone(),
_ => {
// TODO
return TransformResult {
id: None,
template: None,
Expand Down

0 comments on commit eb8ffb8

Please sign in to comment.