mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 09:08:04 +01:00
fix: returning failure on success
oh wow, that's an oopsie
This commit is contained in:
parent
c63b20fa65
commit
48c4ea2f6d
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class Patcher(
|
|||
for (patch in patches) {
|
||||
val result: Result<PatchResult> = try {
|
||||
val pr = patch.execute(cache)
|
||||
if (!pr.isSuccess()) {
|
||||
if (pr.isSuccess()) {
|
||||
Result.success(pr)
|
||||
} else {
|
||||
Result.failure(Exception(pr.error()?.errorMessage() ?: "Unknown error"))
|
||||
|
|
Loading…
Reference in a new issue