Skip to content

Commit

Permalink
directly return result from call get_first_optional_object
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Dec 2, 2024
1 parent 292c449 commit 63392b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_transformer/src/es2022/class_properties/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
expr: &mut Expression<'a>,
ctx: &mut TraverseCtx<'a>,
) -> Expression<'a> {
let (is_call, expr) = if let Some((is_call, expr)) = Self::get_first_optional_object(expr) {
(is_call, expr)
let (is_call, expr) = if let Some(result) = Self::get_first_optional_object(expr) {
result
} else {
(false, expr)
};
Expand Down

0 comments on commit 63392b1

Please sign in to comment.