You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line of code item && item.props && item.props.data && item.props.data.length > 0 is reduced to two statementsitem?.props?.data && item.props.data.length > 0 but it could be reduced to a single statement item?.props?.data?.length > 0
The text was updated successfully, but these errors were encountered:
Indeed! Good catch! I think > changes the semantics of the AST so that item.props.data.length and > are grouped together which causes it to be left out from the transformation. This might be a bit tricky to solve.
Thanks once again for this saaaaweeeet codemod!
This line of code
item && item.props && item.props.data && item.props.data.length > 0
is reduced to two statementsitem?.props?.data && item.props.data.length > 0
but it could be reduced to a single statementitem?.props?.data?.length > 0
The text was updated successfully, but these errors were encountered: