Skip to content

Commit 350e2e3

Browse files
committed
chore: make lint happy
1 parent a8b2587 commit 350e2e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/aichat/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ func init() {
142142
if gid == 0 {
143143
gid = -ctx.Event.UserID
144144
}
145-
c.SetData(gid, int64(r&0xff))
145+
err = c.SetData(gid, int64(r&0xff))
146+
if err != nil {
147+
ctx.SendChain(message.Text("ERROR: set data err: ", err))
148+
return
149+
}
146150
ctx.SendChain(message.Text("成功"))
147151
})
148152
en.OnPrefix("设置AI聊天密钥", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {

0 commit comments

Comments
 (0)