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