1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

fix: make linter happy

This commit is contained in:
wdvxdr 2021-12-26 17:54:03 +08:00
parent b8fe459c75
commit a10aee8c8d
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6

View File

@ -813,8 +813,7 @@ func (bot *CQBot) uploadForwardElement(m gjson.Result, groupID int64) *message.F
return elems
}
var convert func(e gjson.Result) *message.ForwardNode
convert = func(e gjson.Result) *message.ForwardNode {
convert := func(e gjson.Result) *message.ForwardNode {
if e.Get("type").Str != "node" {
return nil
}