From 4c1762413a527d4c1384b88d1254e4864d1c8509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20D=C3=ADaz-L=C3=B3pez?= Date: Fri, 1 Jul 2022 16:36:12 +0200 Subject: [PATCH] fix(timer): stop should return `cmd` (#138) --- timer/timer.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/timer/timer.go b/timer/timer.go index 26720e7..c0fb1fc 100644 --- a/timer/timer.go +++ b/timer/timer.go @@ -162,9 +162,7 @@ func (m *Model) Start() tea.Cmd { // Stop pauses the timer. Has no effect if the timer has timed out. func (m *Model) Stop() tea.Cmd { - return func() tea.Msg { - return m.startStop(false) - } + return m.startStop(false) } // Toggle stops the timer if it's running and starts it if it's stopped.