mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-09-20 04:53:43 +02:00
fix: applying no patches throwing error
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
93e81ff047
commit
f88c11820d
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class Patcher(
|
|||
stopOnError: Boolean = false,
|
||||
callback: (String) -> Unit = {}
|
||||
): Map<PatchMetadata, Result<PatchResultSuccess>> {
|
||||
if (!signaturesResolved) {
|
||||
if (!signaturesResolved && patcherData.patches.isNotEmpty()) {
|
||||
throw IllegalStateException("Signatures not yet resolved, please invoke Patcher#resolveSignatures() first.")
|
||||
}
|
||||
return buildMap {
|
||||
|
|
Loading…
Reference in a new issue