refactor(transformer/class-properties): do not take mut ref when immut ref will do (#8040)

Tiny refactor. Not need to take a `&mut` when a `&` will do.
This commit is contained in:
overlookmotel 2024-12-21 07:21:30 +00:00
parent 274f117d4e
commit 98e8a72bad

View file

@ -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;
}