Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

Commit 13b6661

Browse files
author
Ivan Korolev
committedNov 25, 2014
[Y/n]: yes is default
1 parent 3ef6932 commit 13b6661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎changes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ func printChangeList(changes []*Change, isNoPrompt bool) bool {
120120
if isNoPrompt {
121121
return true
122122
}
123-
var input string
123+
input := "Y"
124124
fmt.Print("Proceed with the changes? [Y/n]: ")
125-
fmt.Scan(&input)
125+
fmt.Scanln(&input)
126126
return strings.ToUpper(input) == "Y"
127127
}

0 commit comments

Comments
 (0)