Skip to content

Commit 79b9d3a

Browse files
author
David Brunow
committed
Fix more build errors
1 parent dea0d25 commit 79b9d3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,9 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
13351335
let currentIfConfigDecl = node.parent?.parent?.as(IfConfigDeclSyntax.self)
13361336

13371337
if let currentIfConfigDecl = currentIfConfigDecl,
1338-
let tokenBeforeCurrentIfConfigDecl = currentIfConfigDecl?.previousToken,
1338+
let tokenBeforeCurrentIfConfigDecl = currentIfConfigDecl.previousToken,
13391339
isNestedInIfConfig(node: Syntax(tokenBeforeCurrentIfConfigDecl)) ||
1340-
tokenBeforeCurrentIfConfigDecl?.text == "}" {
1340+
tokenBeforeCurrentIfConfigDecl.text == "}" {
13411341
breakToken = .break(.reset)
13421342
} else {
13431343
breakToken = .break

0 commit comments

Comments
 (0)