mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-22 22:23:32 +08:00
Simplify expression
This commit is contained in:
@@ -355,7 +355,7 @@ internal class WtLogin {
|
||||
val otherInfo: String = readUShortLVString()
|
||||
|
||||
LoginPacketResponse.Error(title, content, otherInfo)
|
||||
} ?: tlvMap[0x146]?.toReadPacket()?.run {
|
||||
} ?: tlvMap[0x146]?.read {
|
||||
discardExact(2) // ver
|
||||
discardExact(2) // code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user