Skip to content

Commit

Permalink
Formatter: TS Intersection & Union types rome#3162
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Sep 12, 2022
1 parent 4c8df5f commit c9cd3e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/rome_js_formatter/src/ts/types/union_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,10 @@ impl FormatNodeRule<TsUnionType> for FormatTsUnionType {
if_group_breaks(&text(")"))
]
)
} else if should_indent {
write!(f, [&indent(&types)])
} else {
if should_indent {
write!(f, [&indent(&types)])
} else {
write!(f, [&types])
}
write!(f, [&types])
}
});

Expand Down

0 comments on commit c9cd3e5

Please sign in to comment.