File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/kotlin/app/revanced/cli/command Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ internal object PatchCommand : Runnable {
30
30
private lateinit var spec: CommandSpec
31
31
32
32
@ArgGroup(multiplicity = " 0..*" )
33
- private lateinit var selection: Set <Selection >
33
+ private var selection = emptySet <Selection >()
34
34
35
35
internal class Selection {
36
36
@ArgGroup(exclusive = false , multiplicity = " 1" )
@@ -366,14 +366,14 @@ internal object PatchCommand : Runnable {
366
366
packageVersion : String ,
367
367
): Set <Patch <* >> = buildSet {
368
368
val enabledPatchesByName =
369
- selection.asSequence(). mapNotNull { it.enabled?.selector?.name }.toSet()
369
+ selection.mapNotNull { it.enabled?.selector?.name }.toSet()
370
370
val enabledPatchesByIndex =
371
- selection.asSequence(). mapNotNull { it.enabled?.selector?.index }.toSet()
371
+ selection.mapNotNull { it.enabled?.selector?.index }.toSet()
372
372
373
373
val disabledPatches =
374
- selection.asSequence(). mapNotNull { it.disable?.selector?.name }.toSet()
374
+ selection.mapNotNull { it.disable?.selector?.name }.toSet()
375
375
val disabledPatchesByIndex =
376
- selection.asSequence(). mapNotNull { it.disable?.selector?.index }.toSet()
376
+ selection.mapNotNull { it.disable?.selector?.index }.toSet()
377
377
378
378
this @filterPatchSelection.withIndex().forEach patchLoop@{ (i, patch) ->
379
379
val patchName = patch.name!!
You can’t perform that action at this time.
0 commit comments