Skip to content

Commit

Permalink
remove duplicate memberProp check
Browse files Browse the repository at this point in the history
  • Loading branch information
achan3 committed Oct 6, 2023
1 parent d677c71 commit a017082
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/transformers/js/core/src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,7 @@ impl Visit for Collect {
if self.in_module_this {
handle_export!();
} else if !self.in_class {
if let MemberProp::Ident(prop) = &node.prop {
self.this_exprs.insert(id!(prop), node.clone());
}
self.this_exprs.insert(id!(&node.prop), node.clone());
}
return;
}
Expand Down

0 comments on commit a017082

Please sign in to comment.