Skip to content

Commit

Permalink
Take empty input as yes answer
Browse files Browse the repository at this point in the history
Closes: #4564
  • Loading branch information
alessio committed Jun 16, 2019
1 parent ac2e765 commit 80e5bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func GetConfirmation(prompt string, buf *bufio.Reader) (bool, error) {
}

response = strings.ToLower(strings.TrimSpace(response))
if response == "y" || response == "yes" {
if response == "y" || response == "yes" || response == "" {
return true, nil
} else if response == "n" || response == "no" {
return false, nil
Expand Down

0 comments on commit 80e5bd2

Please sign in to comment.