mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 15:00:38 +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) {
|
||||
key.let {
|
||||
write(it)//key
|
||||
writeInt(getCrc32(it))
|
||||
}
|
||||
write(key)//key
|
||||
writeInt(getCrc32(key))
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user