Skip to content

Commit

Permalink
fix: wrong value for iterator in PatchOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Sep 8, 2022
1 parent 8f78f85 commit e31ac1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt
Expand Up @@ -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<PatchOption<*>> {
class PatchOptions(vararg options: PatchOption<*>) : Iterable<PatchOption<*>> {
private val register = mutableMapOf<String, PatchOption<*>>()

init {
Expand Down Expand Up @@ -60,7 +60,7 @@ class PatchOptions(vararg val options: PatchOption<*>) : Iterable<PatchOption<*>
get(key).value = null
}

override fun iterator() = options.iterator()
override fun iterator() = register.values.iterator()
}

/**
Expand Down

0 comments on commit e31ac1f

Please sign in to comment.