From 7f6f2ff7ef1140d481e21d04eba097185d285d42 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 30 Jan 2026 17:01:08 +0100 Subject: [PATCH] dont log successfull dependencies --- .../src/commonMain/kotlin/app/revanced/patcher/Patching.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/patcher/src/commonMain/kotlin/app/revanced/patcher/Patching.kt b/patcher/src/commonMain/kotlin/app/revanced/patcher/Patching.kt index f8194ae..c099a19 100644 --- a/patcher/src/commonMain/kotlin/app/revanced/patcher/Patching.kt +++ b/patcher/src/commonMain/kotlin/app/revanced/patcher/Patching.kt @@ -95,9 +95,7 @@ fun Set.apply( val patchResult = patch.apply() // If an exception occurred or the patch has no finalize block, emit the result. - if (patchResult.exception != null || patch.afterDependents == null) { - emit(patchResult) - } + if (patchResult.exception != null || patch.afterDependents == null) emit(patchResult) } val succeededPatchesWithFinalizeBlock = @@ -108,7 +106,7 @@ fun Set.apply( succeededPatchesWithFinalizeBlock.asReversed().forEach { result -> val patch = result.patch runCatching { patch.afterDependents!!.invoke(bytecodePatchContext, resourcePatchContext) }.fold( - { emit(result) }, + { if (patch in this) emit(result) }, { emit( PatchResult(