mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-30 12:50:29 +00:00
remove carriage return from -clean prompt and fix broken logic (#2186)
This commit is contained in:
parent
bb609467dd
commit
dcf94816fb
1 changed files with 2 additions and 5 deletions
|
|
@ -23,12 +23,9 @@ func shouldContinue() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if len(text) <= 1 {
|
||||
// default continue
|
||||
return true
|
||||
}
|
||||
text = strings.TrimRight(text, "\r\n")
|
||||
|
||||
return strings.ToLower(text)[0] == 'y'
|
||||
return len(text) == 0 || strings.ToLower(text)[0] == 'y'
|
||||
}
|
||||
|
||||
// CleanConfig performs cleanup in the user's configuration directory
|
||||
|
|
|
|||
Loading…
Reference in a new issue