mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +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
|
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
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue