Skip to content

Commit

Permalink
style(transformer/arrow-functions): semicolon after return statements (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
overlookmotel committed Nov 6, 2024
1 parent 1238506 commit 38a6df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_transformer/src/common/arrow_function_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -405,7 +405,7 @@ impl<'a> ArrowFunctionConverter<'a> {
Some(func.scope_id().get().unwrap())
} else {
None
}
};
}
_ => {}
}
Expand Down

0 comments on commit 38a6df6

Please sign in to comment.