Skip to content

Commit b92a7dc

Browse files
authored
Merge pull request #573 from ahoppen/ahoppen/remove-tupletypeelement-initializer
Remove `initializer` from `TupleTypeElementSyntax` initializer call
2 parents ca6a8ea + 2b9f52c commit b92a7dc

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)