1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

Apply suggestions from code review

This commit is contained in:
Him188 2024-03-30 13:54:34 +00:00 committed by GitHub
parent 919080871f
commit e78b8474c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -351,12 +351,12 @@ internal class GroupNotificationProcessor(
val fromUser = from?.findUser()
val targetUser = target?.findUser()
if(fromUser == null || targetUser == null){
if (fromUser == null || targetUser == null) {
markNotConsumed()
logger.debug {
"Cannot find from or target in Transformers528 0x14 template\ntemplId=${grayTip.templId}\nPermList=${grayTip.msgTemplParam.structureToString()}"
}
}else{
} else {
collected += NudgeEvent(
from = fromUser,
target = targetUser,