Skip to content

Commit

Permalink
refactor(ast): shorten code in AST builder (#3835)
Browse files Browse the repository at this point in the history
Shorten code in AST builder. `MemberExpression` can be converted
directly to `AssignmentTarget`.
  • Loading branch information
overlookmotel authored Jun 23, 2024
1 parent 1206967 commit a648748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/ast_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ impl<'a> AstBuilder<'a> {
self,
expr: MemberExpression<'a>,
) -> AssignmentTarget<'a> {
AssignmentTarget::from(SimpleAssignmentTarget::from(expr))
AssignmentTarget::from(expr)
}

#[inline]
Expand Down

0 comments on commit a648748

Please sign in to comment.