mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
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:
parent
274f117d4e
commit
98e8a72bad
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue