Skip to content

Commit 82c451f

Browse files
committed
🎨 cleanup
1 parent d0de828 commit 82c451f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

LocalizationEditor/Providers/Parser.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,17 @@ class Parser {
211211
if let priorToken = tokens.last {
212212
// When the prior token and the new token are of the same type, combine their values. Otherwise just return the new token.
213213
switch (priorToken, inputToken) {
214-
case (.key(let oldText), .key(let newText)):
214+
case let (.key(oldText), .key(newText)):
215215
let combinedText = oldText + seperatingString + newText
216216
// Also remove the token that is now included in the new token.
217217
tokens.removeLast()
218218
return .key(combinedText)
219-
case (.value(let oldText), .value(let newText)):
219+
case let (.value(oldText), .value(newText)):
220220
let combinedText = oldText + seperatingString + newText
221221
// Also remove the token that is now included in the new token.
222222
tokens.removeLast()
223223
return .value(combinedText)
224-
case (.message(let oldText), .message(let newText)):
224+
case let (.message( oldText), .message(newText)):
225225
let combinedText = oldText + seperatingString + newText
226226
// Also remove the token that is now included in the new token.
227227
tokens.removeLast()
@@ -289,7 +289,7 @@ class Parser {
289289
case (.some(let smallEnclosing), .none):
290290
nextControlCharacter = smallEnclosing.key
291291
nextControlCharacterIndex = smallEnclosing.value
292-
case (.some(let smallEnclosing), .some(let smallSeperating)):
292+
case let (.some(smallEnclosing), .some(smallSeperating)):
293293
if smallSeperating.value < smallEnclosing.value {
294294
nextControlCharacter = smallSeperating.key
295295
nextControlCharacterIndex = smallSeperating.value

0 commit comments

Comments
 (0)