Skip to content

Commit

Permalink
perf: do not resolve empty signatures list
Browse files Browse the repository at this point in the history
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
oSumAtrIX committed Jun 5, 2022
1 parent 6cb7cdb commit b1eebc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/kotlin/app/revanced/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1eebc9

Please sign in to comment.