Skip to content

Commit

Permalink
refactor(transformer/class-properties): do not take mut ref when immu…
Browse files Browse the repository at this point in the history
…t ref will do (oxc-project#8040)

Tiny refactor. Not need to take a `&mut` when a `&` will do.
  • Loading branch information
overlookmotel committed Dec 21, 2024
1 parent 274f117 commit 98e8a72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
}

// Leave class expressions to `transform_class_expression_on_exit`
let class_details = self.current_class_mut();
let class_details = self.current_class();
if !class_details.is_declaration {
return;
}
Expand Down

0 comments on commit 98e8a72

Please sign in to comment.