Fixed a warning
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m34s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m34s
This commit is contained in:
@@ -924,7 +924,7 @@ func selectBestNextWord(options []string, wordHistory []string) string {
|
|||||||
var fallbackOptions []string
|
var fallbackOptions []string
|
||||||
for _, option := range options {
|
for _, option := range options {
|
||||||
// Avoid repetition
|
// 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)
|
fallbackOptions = append(fallbackOptions, option)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user