diff --git a/src/main/kotlin/app/revanced/patcher/Patcher.kt b/src/main/kotlin/app/revanced/patcher/Patcher.kt index b140ee68..8bb9af64 100644 --- a/src/main/kotlin/app/revanced/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/patcher/Patcher.kt @@ -85,7 +85,7 @@ class Patcher( for (patch in patches) { val result: Result = try { val pr = patch.execute(cache) - if (!pr.isSuccess()) { + if (pr.isSuccess()) { Result.success(pr) } else { Result.failure(Exception(pr.error()?.errorMessage() ?: "Unknown error"))