Skip to content

Commit

Permalink
fix:修复猜单词插件最后一轮无法正常发送的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
imagemlt committed Oct 16, 2024
1 parent e653475 commit 0466329
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/wordle/wordle.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ func newWordleGame(target string) func(string) (bool, []byte, error) {
}
}
record = append(record, s)
if len(record) >= cap(record) {
err = errTimesRunOut
return
}
}
var side = 20
var space = 10
Expand Down Expand Up @@ -269,6 +265,10 @@ func newWordleGame(target string) func(string) (bool, []byte, error) {
}
}
data, err = imgfactory.ToBytes(ctx.Image())
if len(record) >= cap(record) {
err = errTimesRunOut
return
}
return
}
}

0 comments on commit 0466329

Please sign in to comment.