diff --git a/plugin/wordle/wordle.go b/plugin/wordle/wordle.go index 3a3615846f..491f27dee4 100644 --- a/plugin/wordle/wordle.go +++ b/plugin/wordle/wordle.go @@ -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 @@ -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 } }