Skip to content

Commit

Permalink
fix(timer): stop should return cmd (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
padilo authored and maaslalani committed Jul 5, 2022
1 parent 42f85b4 commit 136e1f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions timer/timer.go
Expand Up @@ -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.
Expand Down

0 comments on commit 136e1f0

Please sign in to comment.