mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
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:
parent
1238506980
commit
38a6df6f66
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue