From 82efb4d37e63ad5a36e2c12cc9221595bd3bf1d6 Mon Sep 17 00:00:00 2001 From: rch Date: Thu, 20 Nov 2025 15:31:58 -0800 Subject: [PATCH] Fix issue reported where on first run of prompt, prior to any user input, an error is thrown. --- cmd/cone/get_drop_task.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/cone/get_drop_task.go b/cmd/cone/get_drop_task.go index beefbb4c..46096e9a 100644 --- a/cmd/cone/get_drop_task.go +++ b/cmd/cone/get_drop_task.go @@ -164,6 +164,7 @@ func (d DurationValidator) IsValid(txt string) (time.Duration, bool) { func (d DurationValidator) Prompt(isFirstRun bool) { if isFirstRun { pterm.Info.Println(durationInputTip) + return } pterm.Error.Println(durationErrorMessage) }