Skip to content

Commit

Permalink
refactor(transformer/class-properties): methods take &self where po…
Browse files Browse the repository at this point in the history
…ssible (#7967)

These 2 methods don't need to take `&mut self`.
  • Loading branch information
overlookmotel committed Dec 17, 2024
1 parent 41a1456 commit 69eeeea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
#[inline]
#[expect(clippy::needless_pass_by_value)]
fn transform_static_assignment_expression(
&mut self,
&self,
expr: &mut Expression<'a>,
prop_binding: BoundIdentifier<'a>,
class_binding: BoundIdentifier<'a>,
Expand Down Expand Up @@ -577,7 +577,7 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
#[inline]
#[expect(clippy::needless_pass_by_value)]
fn transform_instance_assignment_expression(
&mut self,
&self,
expr: &mut Expression<'a>,
prop_binding: BoundIdentifier<'a>,
ctx: &mut TraverseCtx<'a>,
Expand Down

0 comments on commit 69eeeea

Please sign in to comment.