Skip to content

Commit c5faade

Browse files
committed
Remove a comment that's no longer relevant.
1 parent 9916694 commit c5faade

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Tests/SwiftFormatPrettyPrintTests/SequenceExprFoldingTests.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ final class SequenceExprFoldingTests: XCTestCase {
6767
}
6868

6969
func testNestedTernary() {
70-
// When parsing ternary expressions, SwiftSyntax sometimes wraps them in a
71-
// SequenceExpr containing a single element, and also wraps the first choice
72-
// in a SequenceExpr containing a single element. Our folding will remove
73-
// the outer sequence but will not touch or recurse into the sequence
74-
// wrapping the first choice, which is why we have the "double wrapping"
75-
// ("{{ ... }}") of first choices for nested ternaries below.
76-
7770
assertFoldedExprStructure(
7871
"a ? b : c ? d : e",
7972
"{ a ? b : { c ? d : e }}")

0 commit comments

Comments
 (0)