From f88c11820dbdc0d1d52a49c9bcdb4f7caa9eb6eb Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 15 Apr 2022 06:03:08 +0200 Subject: [PATCH] fix: applying no patches throwing error Signed-off-by: oSumAtrIX --- src/main/kotlin/app/revanced/patcher/Patcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/Patcher.kt b/src/main/kotlin/app/revanced/patcher/Patcher.kt index 3d03ba5..628a291 100644 --- a/src/main/kotlin/app/revanced/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/patcher/Patcher.kt @@ -146,7 +146,7 @@ class Patcher( stopOnError: Boolean = false, callback: (String) -> Unit = {} ): Map> { - if (!signaturesResolved) { + if (!signaturesResolved && patcherData.patches.isNotEmpty()) { throw IllegalStateException("Signatures not yet resolved, please invoke Patcher#resolveSignatures() first.") } return buildMap {