From 136e1f05bfcb39a2651f3625e1d7e3e1ed67d9b4 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 26720e76..c0fb1fc6 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.