Fixed a warning
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m34s

This commit is contained in:
2025-12-22 23:51:08 -07:00
parent c02086783d
commit 80f1a28be9

View File

@@ -924,7 +924,7 @@ func selectBestNextWord(options []string, wordHistory []string) string {
var fallbackOptions []string
for _, option := range options {
// Avoid repetition
if len(wordHistory) == 0 || strings.ToLower(wordHistory[len(wordHistory)-1]) != strings.ToLower(option) {
if len(wordHistory) == 0 || !strings.EqualFold(wordHistory[len(wordHistory)-1], option) {
fallbackOptions = append(fallbackOptions, option)
}
}