From 357d85a72e255f2f986ee4dcc36a21e967f3a1d1 Mon Sep 17 00:00:00 2001 From: Spidy123222 Date: Wed, 30 Aug 2023 03:39:47 +0000 Subject: [PATCH] please o riley build --- AltStore/Operations/ClearAppCacheOperation.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AltStore/Operations/ClearAppCacheOperation.swift b/AltStore/Operations/ClearAppCacheOperation.swift index 16b644e8..41d00c8b 100644 --- a/AltStore/Operations/ClearAppCacheOperation.swift +++ b/AltStore/Operations/ClearAppCacheOperation.swift @@ -8,17 +8,17 @@ import Foundation import AltStoreCore - +/* struct BatchError: ALTLocalizedError { - /* + enum Code: Int, ALTErrorCode { typealias Error = BatchError case batchError } - */ + var code: Code = .batchError var underlyingErrors: [Error] @@ -39,7 +39,7 @@ struct BatchError: ALTLocalizedError return message } } - +*/ @objc(ClearAppCacheOperation) class ClearAppCacheOperation: ResultOperation { @@ -60,7 +60,7 @@ class ClearAppCacheOperation: ResultOperation self.clearTemporaryDirectory { result in switch result { - case .failure(let batchError as BatchError): allErrors.append(contentsOf: batchError.underlyingErrors) + //case .failure(let batchError as BatchError): allErrors.append(contentsOf: batchError.underlyingErrors) case .failure(let error): allErrors.append(error) case .success: break } @@ -68,7 +68,7 @@ class ClearAppCacheOperation: ResultOperation self.removeUninstalledAppBackupDirectories { result in switch result { - case .failure(let batchError as BatchError): allErrors.append(contentsOf: batchError.underlyingErrors) + //case .failure(let batchError as BatchError): allErrors.append(contentsOf: batchError.underlyingErrors) case .failure(let error): allErrors.append(error) case .success: break }