mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 19:43:49 +08:00
style: delete useless return
This commit is contained in:
parent
8da29c292e
commit
9506dc21ab
@ -1606,7 +1606,6 @@ func (bot *CQBot) CQGetGuildMessage(messageID string, noCache bool) global.MSG {
|
|||||||
m["message"] = ToFormattedMessage(pull[0].Elements, *source, false)
|
m["message"] = ToFormattedMessage(pull[0].Elements, *source, false)
|
||||||
m["reactions"] = convertReactions(pull[0].Reactions)
|
m["reactions"] = convertReactions(pull[0].Reactions)
|
||||||
bot.InsertGuildChannelMessage(pull[0])
|
bot.InsertGuildChannelMessage(pull[0])
|
||||||
return OK(m)
|
|
||||||
} else {
|
} else {
|
||||||
channelMsgByDB, err := db.GetGuildChannelMessageByID(messageID)
|
channelMsgByDB, err := db.GetGuildChannelMessageByID(messageID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user