Skip to content

Commit 71d43eb

Browse files
committed
chore: make lint happy
1 parent 57c41a7 commit 71d43eb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

plugin/aichat/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ var (
4747

4848
func init() {
4949
en.OnMessage(chat.EnsureConfig, func(ctx *zero.Ctx) bool {
50-
gid := ctx.Event.GroupID
51-
if gid == 0 {
52-
gid = -ctx.Event.UserID
53-
}
5450
stor, ok := ctx.State[zero.StateKeyPrefixKeep+"aichatcfg_stor__"].(chat.Storage)
5551
if !ok {
5652
logrus.Warnln("ERROR: cannot get stor")

0 commit comments

Comments
 (0)