please o riley build

This commit is contained in:
Spidy123222
2023-08-30 03:39:47 +00:00
committed by nythepegasus
parent 88ad828ce0
commit 357d85a72e

View File

@@ -8,17 +8,17 @@
import Foundation import Foundation
import AltStoreCore import AltStoreCore
/*
struct BatchError: ALTLocalizedError struct BatchError: ALTLocalizedError
{ {
/*
enum Code: Int, ALTErrorCode enum Code: Int, ALTErrorCode
{ {
typealias Error = BatchError typealias Error = BatchError
case batchError case batchError
} }
*/
var code: Code = .batchError var code: Code = .batchError
var underlyingErrors: [Error] var underlyingErrors: [Error]
@@ -39,7 +39,7 @@ struct BatchError: ALTLocalizedError
return message return message
} }
} }
*/
@objc(ClearAppCacheOperation) @objc(ClearAppCacheOperation)
class ClearAppCacheOperation: ResultOperation<Void> class ClearAppCacheOperation: ResultOperation<Void>
{ {
@@ -60,7 +60,7 @@ class ClearAppCacheOperation: ResultOperation<Void>
self.clearTemporaryDirectory { result in self.clearTemporaryDirectory { result in
switch result 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 .failure(let error): allErrors.append(error)
case .success: break case .success: break
} }
@@ -68,7 +68,7 @@ class ClearAppCacheOperation: ResultOperation<Void>
self.removeUninstalledAppBackupDirectories { result in self.removeUninstalledAppBackupDirectories { result in
switch result 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 .failure(let error): allErrors.append(error)
case .success: break case .success: break
} }