mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-09 21:26:59 +08:00
Remove unnecessary let
This commit is contained in:
parent
7bf8d3fb19
commit
7c5c01bb40
@ -149,10 +149,8 @@ fun DataOutputStream.writeCRC32() = writeCRC32(getRandomByteArray(16))
|
|||||||
|
|
||||||
|
|
||||||
fun DataOutputStream.writeCRC32(key: ByteArray) {
|
fun DataOutputStream.writeCRC32(key: ByteArray) {
|
||||||
key.let {
|
write(key)//key
|
||||||
write(it)//key
|
writeInt(getCrc32(key))
|
||||||
writeInt(getCrc32(it))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user