mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 14:04:24 +02:00
refactor: Simplify accessing the patches from PatcherContext.executablePatches
This commit is contained in:
parent
bc7d6b9941
commit
91cdfd53ef
@ -208,7 +208,7 @@ class Patcher(
|
||||
|
||||
val executedPatches = LinkedHashMap<Patch<*>, PatchResult>() // Key is name.
|
||||
|
||||
context.executablePatches.map { it.value }.sortedBy { it.name }.forEach { patch ->
|
||||
context.executablePatches.values.sortedBy { it.name }.forEach { patch ->
|
||||
val patchResult = executePatch(patch, executedPatches)
|
||||
|
||||
// If the patch failed, emit the result, even if it is closeable.
|
||||
|
Loading…
x
Reference in New Issue
Block a user