Clean up Title Survey empty title message code

This commit is contained in:
Tyler McGoffin 2024-10-17 14:40:17 -07:00
parent c1897f3122
commit 13ab02729b

View file

@ -119,9 +119,7 @@ func TitleSurvey(p Prompt, io *iostreams.IOStreams, state *IssueMetadataState) e
return err
}
if result == "" {
colorizeRed := io.ColorScheme().ColorFromString("red")
msg := fmt.Sprintf("%s Title cannot be blank.", colorizeRed("X"))
fmt.Fprintln(io.ErrOut, msg)
fmt.Fprintf(io.ErrOut, "%s Title cannot be blank\n", io.ColorScheme().FailureIcon())
}
}