mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-02-24 00:01:10 +01:00
chore: merge nested if blocks
This commit is contained in:
parent
7dabd53109
commit
00145f2bb6
@ -26,11 +26,9 @@ fun Patcher.addPatchesFiltered(
|
|||||||
|
|
||||||
val args = MainCommand.args.pArgs!!
|
val args = MainCommand.args.pArgs!!
|
||||||
|
|
||||||
if (excludePatches) {
|
if (excludePatches && args.excludedPatches.contains(patchName)) {
|
||||||
if (args.excludedPatches.contains(patchName)) {
|
|
||||||
println("$prefix: Explicitly excluded.")
|
println("$prefix: Explicitly excluded.")
|
||||||
return@patch
|
return@patch
|
||||||
}
|
|
||||||
} else if (!patch.include) {
|
} else if (!patch.include) {
|
||||||
println("$prefix: Implicitly excluded.")
|
println("$prefix: Implicitly excluded.")
|
||||||
return@patch
|
return@patch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user