From 7c5c01bb40381d6ad69fe7fd81d74f1bed43e340 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 3 Oct 2019 12:33:35 +0800 Subject: [PATCH] Remove unnecessary let --- .../mamoe/mirai/network/protocol/tim/packet/ClientPacket.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mirai-core/src/main/java/net/mamoe/mirai/network/protocol/tim/packet/ClientPacket.kt b/mirai-core/src/main/java/net/mamoe/mirai/network/protocol/tim/packet/ClientPacket.kt index 4113485f5..17140fe09 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/network/protocol/tim/packet/ClientPacket.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/network/protocol/tim/packet/ClientPacket.kt @@ -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)) }