mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 11:13:28 +01:00
please o riley build
This commit is contained in:
committed by
nythepegasus
parent
88ad828ce0
commit
357d85a72e
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user