chore: merge nested if blocks

This commit is contained in:
oSumAtrIX 2022-06-21 19:00:11 +02:00
parent 7dabd53109
commit 00145f2bb6
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

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