Skip to content

Commit cf05f91

Browse files
Fix issue reported where on first run of prompt, prior to any user input, an error is thrown. (#126)
1 parent 22e577c commit cf05f91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/cone/get_drop_task.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func (d DurationValidator) IsValid(txt string) (time.Duration, bool) {
164164
func (d DurationValidator) Prompt(isFirstRun bool) {
165165
if isFirstRun {
166166
pterm.Info.Println(durationInputTip)
167+
return
167168
}
168169
pterm.Error.Println(durationErrorMessage)
169170
}

0 commit comments

Comments
 (0)