mirror of
https://github.com/revanced/revanced-patcher
synced 2024-11-24 05:16:22 +01: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,
|
||||
private val resolvedMethodName: String,
|
||||
) {
|
||||
|
||||
fun resolveAndGetMethod(): MutableMethod {
|
||||
return definingClassProxy.resolve().methods.single { it.name == resolvedMethodName }
|
||||
fun method(): MutableMethod {
|
||||
return definingClassProxy.resolve().methods.first { it.name == resolvedMethodName }
|
||||
}
|
||||
|
||||
@Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method.
|
||||
|
Loading…
Reference in New Issue
Block a user