mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-18 17:03:56 +00:00
fix: applying no patches throwing error
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user