mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 19:53:25 +01:00
Remove extra returns and make sure to decrement
This commit is contained in:
committed by
nythepegasus
parent
cc5c280882
commit
980699af6f
@@ -54,7 +54,7 @@ final class EnableJITOperation<Context: EnableJITContext>: ResultOperation<Void>
|
|||||||
} catch {
|
} catch {
|
||||||
retries -= 1
|
retries -= 1
|
||||||
if (retries <= 0){
|
if (retries <= 0){
|
||||||
return self.finish(.failure(error))
|
self.finish(.failure(error))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,7 +175,8 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
|||||||
self.finish(.success(installedApp))
|
self.finish(.success(installedApp))
|
||||||
break
|
break
|
||||||
} catch {
|
} catch {
|
||||||
if (attempts == 0){
|
attempts -= 1
|
||||||
|
if (attempts <= 0){
|
||||||
installing = false
|
installing = false
|
||||||
self.finish(.failure(MinimuxerError.InstallApp))
|
self.finish(.failure(MinimuxerError.InstallApp))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,12 +56,12 @@ final class SendAppOperation: ResultOperation<()>
|
|||||||
break
|
break
|
||||||
} catch {
|
} catch {
|
||||||
attempts -= 1
|
attempts -= 1
|
||||||
if (attempts == 0) {
|
if (attempts <= 0) {
|
||||||
self.finish(.failure(MinimuxerError.RwAfc))
|
self.finish(.failure(MinimuxerError.RwAfc))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.progress.completedUnitCount += 1
|
self.progress.completedUnitCount += 1
|
||||||
return self.finish(.success(()))
|
self.finish(.success(()))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print("IPA doesn't exist????")
|
print("IPA doesn't exist????")
|
||||||
|
|||||||
Reference in New Issue
Block a user