This repository was archived by the owner on Apr 15, 2024. It is now read-only.
File tree 1 file changed +3
-3
lines changed
src/main/kotlin/app/revanced/cli/command
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ internal object PatchCommand : Runnable {
37
37
@CommandLine.Option (
38
38
names = [" -i" , " --include" ], description = [" List of patches to include." ]
39
39
)
40
- private var includedPatches = arrayOf <String >()
40
+ private var includedPatches = hashSetOf <String >()
41
41
42
42
@CommandLine.Option (
43
43
names = [" --ii" ],
@@ -48,7 +48,7 @@ internal object PatchCommand : Runnable {
48
48
@CommandLine.Option (
49
49
names = [" -e" , " --exclude" ], description = [" List of patches to exclude." ]
50
50
)
51
- private var excludedPatches = arrayOf <String >()
51
+ private var excludedPatches = hashSetOf <String >()
52
52
53
53
@CommandLine.Option (
54
54
names = [" --ei" ],
@@ -200,7 +200,7 @@ internal object PatchCommand : Runnable {
200
200
201
201
// Warn if a patch can not be found in the supplied patch bundles.
202
202
if (warn) patches.map { it.name }.toHashSet().let { availableNames ->
203
- arrayOf( * includedPatches, * excludedPatches).filter { name ->
203
+ ( includedPatches + excludedPatches).filter { name ->
204
204
! availableNames.contains(name)
205
205
}
206
206
}.let { unknownPatches ->
You can’t perform that action at this time.
0 commit comments