refactor(transformer): improve indentation (#3282)

Improve indentation in code. Not sure why rustfmt didn't do this already.
This commit is contained in:
overlookmotel 2024-05-14 17:53:11 +00:00
parent 482dcc0aed
commit dad47a553e

View file

@ -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);
} }