diff --git a/general/ai/cli.go b/general/ai/cli.go index 0ff08daf2..d7a992ee9 100644 --- a/general/ai/cli.go +++ b/general/ai/cli.go @@ -86,15 +86,8 @@ func (fb *FeedbackBody) getUserFeedback() { if !fb.IsAccurate { scanner := bufio.NewScanner(os.Stdin) fmt.Print("Please provide the exact command you expected (Example: 'jf rt u ...'): ") - for { - // Ask the user for a question - scanner.Scan() - fb.ExpectedAnswer = scanner.Text() - if fb.ExpectedAnswer != "" { - // If the user entered a question, break the loop - break - } - } + scanner.Scan() + fb.ExpectedAnswer = scanner.Text() } }