mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: set index for insertAt to 0 by default
This commit is contained in:
parent
4dd820ffdf
commit
d5b4c99c00
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ object ASMWriter {
|
|||
fun InsnList.setAt(index: Int, node: AbstractInsnNode) {
|
||||
this[this.get(index)] = node
|
||||
}
|
||||
fun InsnList.insertAt(index: Int, vararg nodes: AbstractInsnNode) {
|
||||
fun InsnList.insertAt(index: Int = 0, vararg nodes: AbstractInsnNode) {
|
||||
this.insert(this.get(index), nodes.toInsnList())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue