Skip to content

Commit

Permalink
refactor: Simplify mapping classes to their names (#290)
Browse files Browse the repository at this point in the history
Co-authored-by: oSumAtrIX <[email protected]>
  • Loading branch information
Tahgolov and oSumAtrIX authored Apr 7, 2024
1 parent f63302f commit 042f554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/patcher/PatchBundleLoader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sealed class PatchBundleLoader private constructor(
patchBundles,
{ patchBundle ->
JarFile(patchBundle).entries().toList().filter { it.name.endsWith(".class") }
.map { it.name.replace('/', '.').replace(".class", "") }
.map { it.name.substringBeforeLast('.').replace('/', '.') }
},
)

Expand Down

0 comments on commit 042f554

Please sign in to comment.