diff --git a/main.go b/main.go index 6f9339f..da7751d 100644 --- a/main.go +++ b/main.go @@ -67,8 +67,11 @@ func initialModel(fullscreen bool, colorLeft string, colorRight string) model { } validateInt := func(text string) error { - _, err := strconv.Atoi(text) - return fmt.Errorf("invalid int input: %w", err) + if _, err := strconv.Atoi(text); err != nil { + return fmt.Errorf("invalid int input: %w", err) + } + + return nil } inputs[0].Placeholder = "Interval length (minutes or duration)"