1
mirror of https://github.com/revanced/revanced-patcher synced 2024-11-20 16:19:21 +01:00

fix: Match fingerprint before delegating the match property

This commit is contained in:
oSumAtrIX 2024-11-01 02:47:57 +01:00
parent 49f4570164
commit 5d996def4d
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -80,7 +80,7 @@ class BytecodePatchContext internal constructor(private val config: PatcherConfi
* *
* @throws IllegalStateException If the [Fingerprint] has not been matched. * @throws IllegalStateException If the [Fingerprint] has not been matched.
*/ */
operator fun Fingerprint.getValue(nothing: Nothing?, property: KProperty<*>): Match = _match operator fun Fingerprint.getValue(nothing: Nothing?, property: KProperty<*>): Match = match
?: throw PatchException("No fingerprint match to delegate to \"${property.name}\".") ?: throw PatchException("No fingerprint match to delegate to \"${property.name}\".")
/** /**