Skip to content

Commit 5ca5a1c

Browse files
committedJun 5, 2022
fix: applying no patches throwing error
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
1 parent d677d9e commit 5ca5a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/main/kotlin/app/revanced/patcher/Patcher.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Patcher(
146146
stopOnError: Boolean = false,
147147
callback: (String) -> Unit = {}
148148
): Map<PatchMetadata, Result<PatchResultSuccess>> {
149-
if (!signaturesResolved) {
149+
if (!signaturesResolved && patcherData.patches.isNotEmpty()) {
150150
throw IllegalStateException("Signatures not yet resolved, please invoke Patcher#resolveSignatures() first.")
151151
}
152152
return buildMap {

0 commit comments

Comments
 (0)