Skip to content

Commit 23c6b8b

Browse files
committed
Minor cleanups
1 parent e19032b commit 23c6b8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SwiftIfConfig/IfConfigRewriter.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ class ActiveSyntaxRewriter<Configuration: BuildConfiguration>: SyntaxRewriter {
216216
}
217217

218218
preconditionFailure("Unhandled postfix expression in #if elimination")
219-
return base
220219
}
221220

222221
/// Drop inactive regions from a postfix `#if` configuration, applying the
@@ -228,7 +227,7 @@ class ActiveSyntaxRewriter<Configuration: BuildConfiguration>: SyntaxRewriter {
228227
// Determine the active clause within this syntax node.
229228
// TODO: Swallows errors
230229
guard let activeClause = try? postfixIfConfig.config.activeClause(in: configuration),
231-
case .`postfixExpression`(let postfixExpr) = activeClause.elements
230+
case .postfixExpression(let postfixExpr) = activeClause.elements
232231
else {
233232
// If there is no active clause, return the base.
234233

0 commit comments

Comments
 (0)