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.
This commit is contained in:
overlookmotel 2024-11-06 14:08:12 +00:00
parent 1238506980
commit 38a6df6f66

View file

@ -386,14 +386,14 @@ impl<'a> ArrowFunctionConverter<'a> {
None None
} else { } else {
Some(func.scope_id().get().unwrap()) Some(func.scope_id().get().unwrap())
} };
} }
Ancestor::ArrowFunctionExpressionBody(func) => { Ancestor::ArrowFunctionExpressionBody(func) => {
return if self.is_async_only() && !*func.r#async() { return if self.is_async_only() && !*func.r#async() {
None None
} else { } else {
Some(func.scope_id().get().unwrap()) Some(func.scope_id().get().unwrap())
} };
} }
// Function body // Function body
Ancestor::FunctionBody(func) => { Ancestor::FunctionBody(func) => {
@ -405,7 +405,7 @@ impl<'a> ArrowFunctionConverter<'a> {
Some(func.scope_id().get().unwrap()) Some(func.scope_id().get().unwrap())
} else { } else {
None None
} };
} }
_ => {} _ => {}
} }