Skip to content

Commit

Permalink
needlessly taken reference of left operand
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 26, 2023
1 parent 5f8406f commit baa731c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transformers/js/core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn match_member_expr(expr: &ast::MemberExpr, idents: Vec<&str>, decls: &Hash
match &*member.obj {
Expr::Member(m) => member = m,
Expr::Ident(id) => {
return idents.len() == 1 && &id.sym == idents.pop().unwrap() && !decls.contains(&id!(id));
return idents.len() == 1 && id.sym == idents.pop().unwrap() && !decls.contains(&id!(id));
}
_ => return false,
}
Expand Down

0 comments on commit baa731c

Please sign in to comment.