Skip to content

Commit 2b9f52c

Browse files
committed
Remove initializer from TupleTypeElementSyntax initializer call
This property has been removed in SwiftSyntax.
1 parent ca6a8ea commit 2b9f52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftFormatRules/UseShorthandTypeNames.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
242242
// leading trivia to the left-paren that we're adding in this case.
243243
let tupleTypeElement = TupleTypeElementSyntax(
244244
inoutKeyword: nil, firstName: nil, secondName: nil, colon: nil, type: TypeSyntax(functionType),
245-
ellipsis: nil, initializer: nil, trailingComma: nil)
245+
ellipsis: nil, trailingComma: nil)
246246
let tupleTypeElementList = TupleTypeElementListSyntax([tupleTypeElement])
247247
let tupleType = TupleTypeSyntax(
248248
leftParen: TokenSyntax.leftParenToken(leadingTrivia: leadingTrivia),

0 commit comments

Comments
 (0)