refactor: Simplify accessing the patches from PatcherContext.executablePatches

This commit is contained in:
oSumAtrIX 2023-09-13 02:22:31 +02:00
parent bc7d6b9941
commit 91cdfd53ef
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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.