mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
refactor(transformer): improve indentation (#3282)
Improve indentation in code. Not sure why rustfmt didn't do this already.
This commit is contained in:
parent
482dcc0aed
commit
dad47a553e
1 changed files with 7 additions and 7 deletions
|
|
@ -93,13 +93,13 @@ impl<'a> React<'a> {
|
|||
})
|
||||
.unwrap_or(false);
|
||||
if !is_constructor
|
||||
// no super class
|
||||
|| ctx
|
||||
.find_ancestor(|ancestor| match ancestor {
|
||||
Ancestor::ClassBody(class) => FinderRet::Found(class.super_class().is_none()),
|
||||
_ => FinderRet::Continue,
|
||||
})
|
||||
.unwrap_or(true)
|
||||
// no super class
|
||||
|| ctx
|
||||
.find_ancestor(|ancestor| match ancestor {
|
||||
Ancestor::ClassBody(class) => FinderRet::Found(class.super_class().is_none()),
|
||||
_ => FinderRet::Continue,
|
||||
})
|
||||
.unwrap_or(true)
|
||||
{
|
||||
self.jsx.jsx_self.transform_jsx_opening_element(elem);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue