Skip to content

Commit a1d0b83

Browse files
committed
Removes duplicate trivia from UnsafeExprSyntax
1 parent 820501e commit a1d0b83

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/SwiftOperators/OperatorTable+Folding.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ extension OperatorTable {
141141
if let unsafeExpr = lhs.as(UnsafeExprSyntax.self) {
142142
return ExprSyntax(
143143
UnsafeExprSyntax(
144-
leadingTrivia: unsafeExpr.leadingTrivia,
145144
unsafeExpr.unexpectedBeforeUnsafeKeyword,
146145
unsafeKeyword: unsafeExpr.unsafeKeyword,
147146
unsafeExpr.unexpectedBetweenUnsafeKeywordAndExpression,
@@ -150,8 +149,7 @@ extension OperatorTable {
150149
op: op,
151150
rhs: rhs
152151
),
153-
unsafeExpr.unexpectedAfterExpression,
154-
trailingTrivia: unsafeExpr.trailingTrivia
152+
unsafeExpr.unexpectedAfterExpression
155153
)
156154
)
157155
}

0 commit comments

Comments
 (0)