From 604aa9e3f871b8f7b8c666d83b96736f9cd2e7fc Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Fri, 8 Oct 2021 22:32:56 -0500 Subject: [PATCH] Fix compiler error with Xcode 12.4/Swift 5.3 --- Mac/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index aa4713f2a..ad024b046 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -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 }