fix: accidentally removed code in refactor

This commit is contained in:
Lucaskyy 2022-04-14 20:07:01 +02:00
parent 32146506f1
commit 0077e26d23
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89
3 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ class VideoAdsPatch : Patch(
)
) {
override fun execute(patcherData: PatcherData): PatchResult {
val result = signatures.first().result!!
var result = signatures.first().result!!
val responsibleMethodSignature = MethodSignature(
MethodSignatureMetadata(
@ -82,7 +82,7 @@ class VideoAdsPatch : Patch(
null
)
result.findParentMethod(
result = result.findParentMethod(
responsibleMethodSignature
) ?: return PatchResultError(
"Could not find parent method with signature ${responsibleMethodSignature.metadata.name}"

View File

@ -124,7 +124,7 @@ class EnableSeekbarTappingPatch : Patch(
)
) {
override fun execute(patcherData: PatcherData): PatchResult {
val result = signatures.first().result!!
var result = signatures.first().result!!
val tapSeekMethods = mutableMapOf<String, Method>()
@ -149,7 +149,7 @@ class EnableSeekbarTappingPatch : Patch(
}
// replace map because we dont need the upper one anymore
signatures.last().result!!
result = signatures.last().result!!
val implementation = result.method.implementation!!

View File

@ -72,9 +72,9 @@ class OldQualityLayoutPatch : Patch(
)
) {
override fun execute(patcherData: PatcherData): PatchResult {
val result = signatures.first().result!!
var result = signatures.first().result!!
result.findParentMethod(
result = result.findParentMethod(
MethodSignature(
MethodSignatureMetadata(
"old-quality-method-signature",