mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-11-13 23:29:23 +01:00
refactor: create a variable for duplicate code
This commit is contained in:
parent
9add2f9e82
commit
40c8500e38
@ -75,11 +75,13 @@ class ZipFile(val file: File) {
|
||||
filePointer.channel.write(it.toCDE())
|
||||
}
|
||||
|
||||
val entriesCount = entries.size.toUShort()
|
||||
|
||||
val endRecord = ZipEndRecord(
|
||||
0u,
|
||||
0u,
|
||||
entries.count().toUShort(),
|
||||
entries.count().toUShort(),
|
||||
entriesCount,
|
||||
entriesCount,
|
||||
filePointer.channel.position().toUInt() - CDEStart,
|
||||
CDEStart,
|
||||
""
|
||||
|
Loading…
Reference in New Issue
Block a user