Fix compiler error with Xcode 12.4/Swift 5.3

This commit is contained in:
Nate Weaver 2021-10-08 22:32:56 -05:00
parent bc1543851e
commit 604aa9e3f8
1 changed files with 2 additions and 2 deletions

View File

@ -933,8 +933,8 @@ internal extension AppDelegate {
let localizedError = NSLocalizedString("This theme cannot be used because the the key—“%@”—is not found in the Info.plist.", comment: "Decoding key missing")
informativeText = NSString.localizedStringWithFormat(localizedError as NSString, codingKey.stringValue) as String
case .dataCorrupted(let context):
guard let error = context.underlyingError as NSError?,
let debugDescription = error.userInfo["NSDebugDescription"] as? String else {
guard let underlyingError = context.underlyingError as NSError?,
let debugDescription = underlyingError.userInfo["NSDebugDescription"] as? String else {
informativeText = error.localizedDescription
break
}