From 71d43eb101c679cb84cef8c8b6f1338f6b5357e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 3 Jan 2026 23:39:30 +0800 Subject: [PATCH] chore: make lint happy --- plugin/aichat/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugin/aichat/main.go b/plugin/aichat/main.go index e17e4ac7..6d4cffda 100644 --- a/plugin/aichat/main.go +++ b/plugin/aichat/main.go @@ -47,10 +47,6 @@ var ( func init() { en.OnMessage(chat.EnsureConfig, func(ctx *zero.Ctx) bool { - gid := ctx.Event.GroupID - if gid == 0 { - gid = -ctx.Event.UserID - } stor, ok := ctx.State[zero.StateKeyPrefixKeep+"aichatcfg_stor__"].(chat.Storage) if !ok { logrus.Warnln("ERROR: cannot get stor")