mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-04-30 21:34:25 +02:00
fix: applying no patches throwing error
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
d677d9e800
commit
5ca5a1c29e
@ -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…
x
Reference in New Issue
Block a user