mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-02-23 15:51:11 +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!!
|
||||
|
||||
if (excludePatches) {
|
||||
if (args.excludedPatches.contains(patchName)) {
|
||||
if (excludePatches && args.excludedPatches.contains(patchName)) {
|
||||
println("$prefix: Explicitly excluded.")
|
||||
return@patch
|
||||
}
|
||||
} else if (!patch.include) {
|
||||
println("$prefix: Implicitly excluded.")
|
||||
return@patch
|
||||
|
Loading…
x
Reference in New Issue
Block a user