From 3e3a792c6c253bffb8e7aebda1e7a54e452a896f Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 19 Feb 2020 14:24:23 +0800 Subject: [PATCH] Suppress warnings --- .../network/protocol/packet/chat/receive/MessageSvc.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt index f134451ab..b94dafdfd 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt @@ -159,6 +159,7 @@ internal class MessageSvc { }.groups.first { it.groupUin == msg.msgHead.fromUin } + @Suppress("DuplicatedCode") val newGroup = GroupImpl( bot = bot, coroutineContext = bot.coroutineContext, @@ -264,6 +265,7 @@ internal class MessageSvc { /** * 发送好友消息 */ + @Suppress("FunctionName") fun ToFriend( client: QQAndroidClient, toUin: Long, @@ -293,6 +295,7 @@ internal class MessageSvc { /** * 发送群消息 */ + @Suppress("FunctionName") fun ToGroup( client: QQAndroidClient, groupCode: Long,