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);
|
.unwrap_or(false);
|
||||||
if !is_constructor
|
if !is_constructor
|
||||||
// no super class
|
// no super class
|
||||||
|| ctx
|
|| ctx
|
||||||
.find_ancestor(|ancestor| match ancestor {
|
.find_ancestor(|ancestor| match ancestor {
|
||||||
Ancestor::ClassBody(class) => FinderRet::Found(class.super_class().is_none()),
|
Ancestor::ClassBody(class) => FinderRet::Found(class.super_class().is_none()),
|
||||||
_ => FinderRet::Continue,
|
_ => FinderRet::Continue,
|
||||||
})
|
})
|
||||||
.unwrap_or(true)
|
.unwrap_or(true)
|
||||||
{
|
{
|
||||||
self.jsx.jsx_self.transform_jsx_opening_element(elem);
|
self.jsx.jsx_self.transform_jsx_opening_element(elem);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue