Skip to content

Commit 41f02f3

Browse files
chore(lint): 改进代码样式 (#1116)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b9cf524 commit 41f02f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/aichat/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (l *list) add(grp int64, txt string) {
3535
l.m[grp] = msgs
3636
return
3737
}
38-
copy(msgs[:], msgs[1:])
38+
copy(msgs, msgs[1:])
3939
msgs[len(msgs)-1] = txt
4040
l.m[grp] = msgs
4141
}

0 commit comments

Comments
 (0)