mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 13:44:25 +02:00
fix: returning failure on success
oh wow, that's an oopsie
This commit is contained in:
parent
c63b20fa65
commit
48c4ea2f6d
@ -85,7 +85,7 @@ class Patcher(
|
|||||||
for (patch in patches) {
|
for (patch in patches) {
|
||||||
val result: Result<PatchResult> = try {
|
val result: Result<PatchResult> = try {
|
||||||
val pr = patch.execute(cache)
|
val pr = patch.execute(cache)
|
||||||
if (!pr.isSuccess()) {
|
if (pr.isSuccess()) {
|
||||||
Result.success(pr)
|
Result.success(pr)
|
||||||
} else {
|
} else {
|
||||||
Result.failure(Exception(pr.error()?.errorMessage() ?: "Unknown error"))
|
Result.failure(Exception(pr.error()?.errorMessage() ?: "Unknown error"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user