Skip to content

Commit 6fe621f

Browse files
committed
chore: make lint happy
1 parent f27e603 commit 6fe621f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/aichatcfg/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ func init() {
9494
en.OnPrefix("设置AI聊天系统提示词", chat.EnsureConfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
9595
Handle(chat.NewExtraSetStr(&chat.AC.SystemP))
9696
en.OnPrefix("设置AI聊天Agent性格", chat.EnsureConfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
97-
Handle(chat.NewExtraSetStr(&chat.AC.AgentChar), func(ctx *zero.Ctx) {
97+
Handle(chat.NewExtraSetStr(&chat.AC.AgentChar), func(_ *zero.Ctx) {
9898
chat.AgentCharConfig.Chars = chat.AC.AgentChar
9999
})
100100
en.OnPrefix("设置AI聊天Agent性别", chat.EnsureConfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
101-
Handle(chat.NewExtraSetStr(&chat.AC.AgentSex), func(ctx *zero.Ctx) {
101+
Handle(chat.NewExtraSetStr(&chat.AC.AgentSex), func(_ *zero.Ctx) {
102102
chat.AgentCharConfig.Sex = chat.AC.AgentSex
103103
})
104104
en.OnFullMatch("查看AI聊天系统提示词", chat.EnsureConfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {

0 commit comments

Comments
 (0)