Skip to content

Commit

Permalink
fix: defaultExclude unused
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 10, 2022
1 parent 99f123d commit 2015c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/app/revanced/utils/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ fun Patcher.addPatchesFiltered() {
if (args.excludedPatches.contains(patchName)) {
logger.info("$prefix: Explicitely excluded")
return@patch
} else if (!patch.include && !args.includedPatches.contains(patchName)) {
logger.info("$prefix: Not explicitely included")
} else if ((!patch.include || args.defaultExclude) && !args.includedPatches.contains(patchName)) {
logger.info("$prefix: Not explicitly included")
return@patch
}

Expand Down

0 comments on commit 2015c2a

Please sign in to comment.