"flatten ternaries" setting breaks returned ternary expressions
Opened this issue · 0 comments
loganpowell commented
When I enable Flatten Ternaries
returned ternary expressions become unreachable. Example:
return data.nodesByOwnerStatus
? data.nodesByOwnerStatus.items
: data.nodesByStatusType
? data.nodesByStatusType.items
: data.listNodes ? data.listNodes.items : data
becomes
return
data.nodesByOwnerStatus ? data.nodesByOwnerStatus.items :
data.nodesByStatusType ? data.nodesByStatusType.items :
data.listNodes ? data.listNodes.items :
data