1
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:
Lucaskyy 2022-04-08 22:58:39 +02:00 committed by oSumAtrIX
parent 59189058ac
commit 783fbf43f2
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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.