From 41f02f34c2cfc4735caacc2d9b0fb909f61bd0b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 14 Feb 2025 21:43:06 +0900 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F=20(#1116)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- plugin/aichat/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/aichat/list.go b/plugin/aichat/list.go index d681914f..967d4929 100644 --- a/plugin/aichat/list.go +++ b/plugin/aichat/list.go @@ -35,7 +35,7 @@ func (l *list) add(grp int64, txt string) { l.m[grp] = msgs return } - copy(msgs[:], msgs[1:]) + copy(msgs, msgs[1:]) msgs[len(msgs)-1] = txt l.m[grp] = msgs }