Skip to content

Commit

Permalink
fix: accidentally removed code in refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Apr 14, 2022
1 parent 3214650 commit 0077e26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/app/revanced/patches/ad/VideoAdsPatch.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>()

Expand All @@ -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!!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0077e26

Please sign in to comment.