perf: do not resolve empty signatures list

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-04-19 20:17:56 +02:00
parent bfeeaf4435
commit 1f7bf3ac6c
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -107,6 +107,9 @@ class Patcher(
}
val signatures = patcherData.patches.flatMap { it.signatures }
if (signatures.isEmpty()) return emptyList()
SignatureResolver(patcherData.classes.internalClasses, signatures).resolve(patcherData)
signaturesResolved = true
return signatures