Remove extra returns and make sure to decrement

This commit is contained in:
Nythepegasus
2023-07-27 05:08:03 -04:00
committed by nythepegasus
parent cc5c280882
commit 980699af6f
3 changed files with 5 additions and 4 deletions

View File

@@ -56,12 +56,12 @@ final class SendAppOperation: ResultOperation<()>
break
} catch {
attempts -= 1
if (attempts == 0) {
if (attempts <= 0) {
self.finish(.failure(MinimuxerError.RwAfc))
}
}
self.progress.completedUnitCount += 1
return self.finish(.success(()))
self.finish(.success(()))
}
} else {
print("IPA doesn't exist????")