Skip to content

Commit

Permalink
fix: do not list compatible packages if patches do not define them
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jan 1, 2023
1 parent 8284c10 commit 31e4a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/cli/command/MainCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ internal object MainCommand : Runnable {
for (patchBundlePath in args.patchArgs?.patchBundles!!) for (patch in PatchBundle.Jar(patchBundlePath)
.loadPatches()) {
if (patch.patchName in logged) continue
for (compatiblePackage in patch.compatiblePackages!!) {
for (compatiblePackage in patch.compatiblePackages ?: continue) {
val packageEntryStr = buildString {
// Add package if flag is set
if (args.patchArgs?.listingArgs?.withPackages == true) {
Expand Down

0 comments on commit 31e4a41

Please sign in to comment.