🚨 FIx lint warning with new #unavailable

This commit is contained in:
Ben Chatelain 2022-07-04 17:29:51 -06:00
parent dc4b5f55e2
commit 6cc248b83e

View file

@ -64,11 +64,10 @@ private func downloadWithRetries(
/// - Returns: A promise the completes when the download is complete. /// - Returns: A promise the completes when the download is complete.
private func download(_ appID: UInt64, purchase: Bool = false) -> Promise<Void> { private func download(_ appID: UInt64, purchase: Bool = false) -> Promise<Void> {
var storeAccount: ISStoreAccount? var storeAccount: ISStoreAccount?
if #available(macOS 12, *) { if #unavailable(macOS 12) {
// Monterey obscured the user's account information, but still allows // Monterey obscured the user's account information, but still allows
// redownloads without passing it to SSPurchase. // redownloads without passing it to SSPurchase.
// https://github.com/mas-cli/mas/issues/417 // https://github.com/mas-cli/mas/issues/417
} else {
guard let account = ISStoreAccount.primaryAccount else { guard let account = ISStoreAccount.primaryAccount else {
return Promise(error: MASError.notSignedIn) return Promise(error: MASError.notSignedIn)
} }