mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 09:08:04 +01:00
fix: applying no patches throwing error
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
d677d9e800
commit
5ca5a1c29e
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