From 38a6df6f66e6b4e93e0a0b2d644aa4ecd8488f48 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:08:12 +0000 Subject: [PATCH] style(transformer/arrow-functions): semicolon after return statements (#7168) Follow-on after stack up to #7148. Style nit. End statements with semi-colons. Usually clippy demands this, not sure why it didn't here. --- .../oxc_transformer/src/common/arrow_function_converter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_transformer/src/common/arrow_function_converter.rs b/crates/oxc_transformer/src/common/arrow_function_converter.rs index a62fd638d..bca5ce20b 100644 --- a/crates/oxc_transformer/src/common/arrow_function_converter.rs +++ b/crates/oxc_transformer/src/common/arrow_function_converter.rs @@ -386,14 +386,14 @@ impl<'a> ArrowFunctionConverter<'a> { None } else { Some(func.scope_id().get().unwrap()) - } + }; } Ancestor::ArrowFunctionExpressionBody(func) => { return if self.is_async_only() && !*func.r#async() { None } else { Some(func.scope_id().get().unwrap()) - } + }; } // Function body Ancestor::FunctionBody(func) => { @@ -405,7 +405,7 @@ impl<'a> ArrowFunctionConverter<'a> { Some(func.scope_id().get().unwrap()) } else { None - } + }; } _ => {} }