Feat: nullable roomid

This commit is contained in:
Grail Finder
2025-07-03 12:29:39 +03:00
parent 2a593739ae
commit d8338fe382
6 changed files with 25 additions and 14 deletions

View File

@ -49,6 +49,7 @@ func convertToSliceOfStrings(value any) ([]string, error) {
}
}
//nolint: unused
func (b *Bot) checkGuesses(tempMap map[string]any, room *models.Room) error {
guesses, err := convertToSliceOfStrings(tempMap["guesses"])
if err != nil {
@ -539,5 +540,5 @@ func (b *Bot) CallLLM(prompt string) ([]byte, error) {
return body, nil
}
// This line should not be reached because each error path returns in the loop.
return nil, fmt.Errorf("unknown error in retry loop")
return nil, errors.New("unknown error in retry loop")
}