fix: new line with clear input

This commit is contained in:
Adrien Waksberg 2019-07-20 15:58:27 +02:00
parent dcbb7359ee
commit 0cdfe3c615
2 changed files with 1 additions and 1 deletions

View file

@ -16,6 +16,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## Changed
- Prefix error message with ERROR
- Fix new line with clear input
## v1.0.0 - 2019-07-12

View file

@ -112,7 +112,6 @@ func (c *Cli) input(text string, defaultValue string, show bool) string {
input := bufio.NewScanner(os.Stdin)
input.Scan()
if input.Text() == "" {
fmt.Printf("\n")
return defaultValue
}
return input.Text()