From a10aee8c8da4464e02b45a1db139f0c1aa23ef75 Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Sun, 26 Dec 2021 17:54:03 +0800 Subject: [PATCH] fix: make linter happy --- coolq/api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coolq/api.go b/coolq/api.go index 5a16941..bde18ab 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -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 }