mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-24 04:25:56 +01:00
refactor: reduce variable initializer
This commit is contained in:
parent
17942d4126
commit
ba094790ac
@ -19,7 +19,7 @@ class ChangePackageNamePatch : ResourcePatch {
|
||||
if (!packageName.matches(packageNameRegex))
|
||||
return PatchResultError("Invalid package name")
|
||||
|
||||
var originalPackageName = ""
|
||||
var originalPackageName: String
|
||||
context.xmlEditor["AndroidManifest.xml"].use { editor ->
|
||||
val manifest = editor.file.getElementsByTagName("manifest").item(0) as Element
|
||||
originalPackageName = manifest.getAttribute("package")
|
||||
|
Loading…
Reference in New Issue
Block a user