Skip to content

Commit

Permalink
Patch build for Swift 5.6 and earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
calda committed Nov 16, 2023
1 parent e6b98ed commit e7190f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Rules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ public struct _FormatRules {
// Make sure the `=` actually created a new scope
if scopeStack.last == .operator("=", .infix),
// Parse the conditional branches following the `=` assignment operator
let previousAssignmentIndex,
let previousAssignmentIndex = previousAssignmentIndex,
let nextTokenAfterAssignment = formatter.index(of: .nonSpaceOrCommentOrLinebreak, after: previousAssignmentIndex),
let conditionalBranches = formatter.conditionalBranches(at: nextTokenAfterAssignment),
// If this is the very end of the conditional assignment following the `=`,
Expand Down

0 comments on commit e7190f3

Please sign in to comment.