From 901e680fa45ef2927f2532a7242de84f88c1acca Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 26 Mar 2022 14:03:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/genshin/ys.go | 4 ++-- plugin/github/repo_searcher.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/genshin/ys.go b/plugin/genshin/ys.go index 501bee64..1264a457 100644 --- a/plugin/genshin/ys.go +++ b/plugin/genshin/ys.go @@ -168,10 +168,10 @@ func randnums(nums int, store storage) (rgba *image.RGBA, err error) { switch rand.Intn(2) { case 0: fourN++ - fours = append(fours, filetree["four"][rand.Intn(fourlen)]) //随机角色 + fours = append(fours, filetree["four"][rand.Intn(fourlen)]) // 随机角色 case 1: fourN2++ - fourArms = append(fourArms, filetree["four2"][rand.Intn(four2len)]) //随机武器 + fourArms = append(fourArms, filetree["four2"][rand.Intn(four2len)]) // 随机武器 } } _ = atomic.AddUint64(&totl, 1) diff --git a/plugin/github/repo_searcher.go b/plugin/github/repo_searcher.go index 97f17e4c..84d0a529 100644 --- a/plugin/github/repo_searcher.go +++ b/plugin/github/repo_searcher.go @@ -97,7 +97,7 @@ func init() { // 插件主体 } // notnull 如果传入文本为空,则返回默认值 -//nolint: unparam + func notnull(text, defstr string) string { if text == "" { return defstr