1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-07 19:40:32 +08:00

chore: make lint happy

This commit is contained in:
源文雨
2025-05-13 20:31:04 +09:00
parent 1683db37d0
commit 617956e3e2
4 changed files with 11 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ func (ctx *Ctx) Parse(model interface{}) (err error) {
func (ctx *Ctx) CheckSession() Rule {
msg := ctx.Value.(*tgba.Message)
return func(ctx2 *Ctx) bool {
msg2, ok := ctx.Value.(*tgba.Message)
msg2, ok := ctx2.Value.(*tgba.Message)
if !ok || msg.From == nil || msg.Chat == nil || msg2.From == nil || msg2.Chat == nil { // 确保无空
return false
}