From 6cc248b83ebaa0640d0dc45436e9a25e3058a475 Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Mon, 4 Jul 2022 17:29:51 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20FIx=20lint=20warning=20with=20ne?= =?UTF-8?q?w=20#unavailable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/MasKit/AppStore/Downloader.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/MasKit/AppStore/Downloader.swift b/Sources/MasKit/AppStore/Downloader.swift index 2b5ab14..650229d 100644 --- a/Sources/MasKit/AppStore/Downloader.swift +++ b/Sources/MasKit/AppStore/Downloader.swift @@ -64,11 +64,10 @@ private func downloadWithRetries( /// - Returns: A promise the completes when the download is complete. private func download(_ appID: UInt64, purchase: Bool = false) -> Promise { var storeAccount: ISStoreAccount? - if #available(macOS 12, *) { + if #unavailable(macOS 12) { // Monterey obscured the user's account information, but still allows // redownloads without passing it to SSPurchase. // https://github.com/mas-cli/mas/issues/417 - } else { guard let account = ISStoreAccount.primaryAccount else { return Promise(error: MASError.notSignedIn) }