mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 05:54:26 +02:00
refactor: rename resolveAndGetMethod to method
This commit is contained in:
parent
59189058ac
commit
783fbf43f2
@ -15,9 +15,8 @@ data class SignatureResolverResult(
|
|||||||
val scanData: PatternScanResult,
|
val scanData: PatternScanResult,
|
||||||
private val resolvedMethodName: String,
|
private val resolvedMethodName: String,
|
||||||
) {
|
) {
|
||||||
|
fun method(): MutableMethod {
|
||||||
fun resolveAndGetMethod(): MutableMethod {
|
return definingClassProxy.resolve().methods.first { it.name == resolvedMethodName }
|
||||||
return definingClassProxy.resolve().methods.single { it.name == resolvedMethodName }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method.
|
@Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user