We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dea0d25 commit 79b9d3aCopy full SHA for 79b9d3a
Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift
@@ -1335,9 +1335,9 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
1335
let currentIfConfigDecl = node.parent?.parent?.as(IfConfigDeclSyntax.self)
1336
1337
if let currentIfConfigDecl = currentIfConfigDecl,
1338
- let tokenBeforeCurrentIfConfigDecl = currentIfConfigDecl?.previousToken,
+ let tokenBeforeCurrentIfConfigDecl = currentIfConfigDecl.previousToken,
1339
isNestedInIfConfig(node: Syntax(tokenBeforeCurrentIfConfigDecl)) ||
1340
- tokenBeforeCurrentIfConfigDecl?.text == "}" {
+ tokenBeforeCurrentIfConfigDecl.text == "}" {
1341
breakToken = .break(.reset)
1342
} else {
1343
breakToken = .break
0 commit comments