Skip to content

Commit 3e3305b

Browse files
SRowley90Sam Rowley
and
Sam Rowley
authored
Unwrap variables in a way Xcode 13 can be compiled (#31)
Co-authored-by: Sam Rowley <[email protected]>
1 parent 6a6577a commit 3e3305b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Snippets/Parsing/SnippetParser.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extension Array where Element == Substring {
4242
}
4343

4444
mutating func trimEmptyOrWhitespaceLines() {
45-
while let last, last.isEmptyOrWhiteSpace {
45+
while let last = last , last.isEmptyOrWhiteSpace {
4646
removeLast()
4747
}
4848
self = Array(drop { $0.isEmptyOrWhiteSpace })
@@ -89,7 +89,7 @@ struct SnippetParser {
8989
}
9090

9191
mutating func endSlice() {
92-
guard let currentSlice else {
92+
guard let currentSlice = currentSlice else {
9393
return
9494
}
9595
guard currentSlice.startLine < presentationLines.count else {

0 commit comments

Comments
 (0)