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
  • Loading branch information
overlookmotel committed Dec 20, 2024
1 parent 8547e02 commit 21ec3fd
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 21ec3fd

Please sign in to comment.