fix: CI test code not removed after ReVanced Patcher 21 migration

This commit is contained in:
inotia00 2024-12-22 16:44:37 +09:00
parent af9c718638
commit 2561fd2922

View File

@ -33,9 +33,7 @@ class ExtensionHook internal constructor(
private val insertIndexResolver: ((Method) -> Int), private val insertIndexResolver: ((Method) -> Int),
private val contextRegisterResolver: (Method) -> String, private val contextRegisterResolver: (Method) -> String,
) { ) {
context(BytecodePatchContext)
operator fun invoke(extensionClassDescriptor: String) { operator fun invoke(extensionClassDescriptor: String) {
if (System.getenv("GITHUB_REPOSITORY") == null) {
val insertIndex = insertIndexResolver(fingerprint.method) val insertIndex = insertIndexResolver(fingerprint.method)
val contextRegister = contextRegisterResolver(fingerprint.method) val contextRegister = contextRegisterResolver(fingerprint.method)
@ -46,7 +44,6 @@ class ExtensionHook internal constructor(
) )
} }
} }
}
fun extensionHook( fun extensionHook(
insertIndexResolver: ((Method) -> Int) = { 0 }, insertIndexResolver: ((Method) -> Int) = { 0 },