Skip to content

Commit

Permalink
fix(fingerprint): do not throw on MethodFingerprint.result getter
Browse files Browse the repository at this point in the history
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
oSumAtrIX committed Sep 18, 2022
1 parent 4485af8 commit 2f7e62e
Showing 1 changed file with 0 additions and 4 deletions.
@@ -1,8 +1,6 @@
package app.revanced.patcher.fingerprint.method.impl

import app.revanced.patcher.data.impl.BytecodeData
import app.revanced.patcher.data.impl.MethodNotFoundException
import app.revanced.patcher.extensions.MethodFingerprintExtensions.name
import app.revanced.patcher.extensions.softCompareTo
import app.revanced.patcher.fingerprint.Fingerprint
import app.revanced.patcher.fingerprint.method.utils.MethodFingerprintUtils
Expand Down Expand Up @@ -31,10 +29,8 @@ abstract class MethodFingerprint(
) : Fingerprint {
/**
* The result of the [MethodFingerprint] the [Method].
* @throws MethodNotFoundException If the resolution of the [Method] has not happened.
*/
var result: MethodFingerprintResult? = null
get() = field ?: throw Exception("${this.name} has not been resolved yet.")
}

/**
Expand Down

0 comments on commit 2f7e62e

Please sign in to comment.