Skip to content

Commit

Permalink
Format switch statement consistently with other code. (#624)
Browse files Browse the repository at this point in the history
Switch was still using SpaceBrace

Co-authored-by: Lasath Fernando <[email protected]>
  • Loading branch information
belav and shocklateboy92 authored Mar 2, 2022
1 parent 045cea7 commit d3fda76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public class ClassName
switch (
someLongValue
+ someOtherLongValue_________________________________________________________
) {
)
{
default:
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static Doc Print(SwitchStatementSyntax node)
Doc.SoftLine
),
Token.Print(node.CloseParenToken),
Doc.IfBreak(" ", Doc.Line, groupId),
node.Sections.Count == 0 ? " " : Doc.Line,
Token.Print(node.OpenBraceToken),
sections,
Token.Print(node.CloseBraceToken)
Expand Down

0 comments on commit d3fda76

Please sign in to comment.