mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: returning failure on success
oh wow, that's an oopsie
This commit is contained in:
parent
eed1cfda7b
commit
3b68d5c65e
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