Skip to content

Commit

Permalink
Fix Swift 5.7 incompatible syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Henrik Panhans <[email protected]>
  • Loading branch information
henrik-dmg committed Mar 7, 2024
1 parent 0f722b4 commit 017ab5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/SwiftFrameCore/Config/ConfigData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ struct ConfigData: Decodable, ConfigValidateable {
// MARK: - Processing

mutating func process() throws {
let regex: Regex<AnyRegexOutput>? = if let localesRegex, !localesRegex.isEmpty {
try Regex(localesRegex)
let regex: Regex<AnyRegexOutput>?
if let localesRegex, !localesRegex.isEmpty {
regex = try Regex(localesRegex)
} else {
nil
regex = nil
}

deviceData = try deviceData.map { try $0.makeProcessedData(localesRegex: regex) }
Expand Down

0 comments on commit 017ab5b

Please sign in to comment.