From e31ac1f132df56ba7d2f8446d289ae03ef28f67d Mon Sep 17 00:00:00 2001 From: Sculas Date: Thu, 8 Sep 2022 17:37:31 +0200 Subject: [PATCH] fix: wrong value for iterator in PatchOptions --- src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt b/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt index 95adb736..68bab5a0 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt @@ -17,7 +17,7 @@ object RequirementNotMetException : Exception("null was passed into an option th * A registry for an array of [PatchOption]s. * @param options An array of [PatchOption]s. */ -class PatchOptions(vararg val options: PatchOption<*>) : Iterable> { +class PatchOptions(vararg options: PatchOption<*>) : Iterable> { private val register = mutableMapOf>() init { @@ -60,7 +60,7 @@ class PatchOptions(vararg val options: PatchOption<*>) : Iterable get(key).value = null } - override fun iterator() = options.iterator() + override fun iterator() = register.values.iterator() } /**