refactor(prompter): explicit return values

This commit is contained in:
Kynan Ware 2025-04-08 12:03:55 -06:00
parent 8821f77fbb
commit 9cf341302e

View file

@ -156,7 +156,11 @@ func (p *speechSynthesizerFriendlyPrompter) Password(prompt string) (string, err
)
err := form.Run()
return result, err
if err != nil {
return "", err
}
return result, nil
}
func (p *speechSynthesizerFriendlyPrompter) Confirm(prompt string, defaultValue bool) (bool, error) {
@ -230,7 +234,10 @@ func (p *speechSynthesizerFriendlyPrompter) InputHostname() (string, error) {
)
err := form.Run()
return result, err
if err != nil {
return "", err
}
return result, nil
}
func (p *speechSynthesizerFriendlyPrompter) MarkdownEditor(prompt, defaultValue string, blankAllowed bool) (string, error) {