Remove unnecessary let

This commit is contained in:
Him188 2019-10-03 12:33:35 +08:00
parent 7bf8d3fb19
commit 7c5c01bb40

View File

@ -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))
}