doc(prompter): remove TODO about default value panic

This commit is contained in:
Kynan Ware 2025-05-06 15:33:51 -06:00
parent cab906151f
commit 957667efe6

View file

@ -126,7 +126,6 @@ func (p *accessiblePrompter) MultiSelect(prompt string, defaults []string, optio
// If this option is in the defaults slice,
// let's add its index to the result slice and huh
// will treat it as a default selection.
// TODO: does an invalid default value constitute a panic?
if slices.Contains(defaults, o) {
result = append(result, i)
}