From 772620c8ce4a025b5936325a7e8eaabdb8c59a33 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Tue, 21 Oct 2025 21:41:02 +0400 Subject: [PATCH] refactor --- .../patches/youtube/misc/litho/filter/LithoFilterPatch.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt index 0375f413c..80267b098 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt @@ -133,10 +133,8 @@ val lithoFilterPatch = bytecodePatch( // The only static method in the class. method -> AccessFlags.STATIC.isSet(method.accessFlags) } - val emptyComponentField = classBy { - // Only one field that matches. - it.type == builderMethodDescriptor.returnType - }.fields.single() + + val emptyComponentField = classBy(builderMethodDescriptor.returnType).fields.single() componentCreateFingerprint.method.apply { val insertIndex = if (is_19_17_or_greater) {