fix: applying no patches throwing error

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-04-15 06:03:08 +02:00
parent 93e81ff047
commit f88c11820d
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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 {