Skip to content

Commit abef7e0

Browse files
committed
1 parent 41e8981 commit abef7e0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

localtimer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package main
22

33
import config "github.com/remotemobprogramming/mob/v5/configuration"
44

5-
// LocalTimer abstracts the local timer functionality so different implementations can be used.
6-
type LocalTimer interface {
5+
// Timer abstracts the local timer functionality so different implementations can be used.
6+
type Timer interface {
77
StartTimer(minutes int, configuration config.Configuration) error
88
StartBreakTimer(minutes int, configuration config.Configuration) error
99
}
1010

11-
// ProcessLocalTimer is the default LocalTimer implementation that uses background OS processes.
11+
// ProcessLocalTimer is the default Timer implementation that uses background OS processes.
1212
type ProcessLocalTimer struct{}
1313

1414
func (t ProcessLocalTimer) StartTimer(minutes int, configuration config.Configuration) error {

timer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func StartTimer(timerInMinutes string, configuration config.Configuration) {
2020
}
2121
}
2222

23-
func startTimer(timerInMinutes string, configuration config.Configuration, localTimer LocalTimer) error {
23+
func startTimer(timerInMinutes string, configuration config.Configuration, localTimer Timer) error {
2424
err, timeoutInMinutes := toMinutes(timerInMinutes)
2525
if err != nil {
2626
return err
@@ -94,7 +94,7 @@ func StartBreakTimer(timerInMinutes string, configuration config.Configuration)
9494
}
9595
}
9696

97-
func startBreakTimer(timerInMinutes string, configuration config.Configuration, localTimer LocalTimer) error {
97+
func startBreakTimer(timerInMinutes string, configuration config.Configuration, localTimer Timer) error {
9898
err, timeoutInMinutes := toMinutes(timerInMinutes)
9999
if err != nil {
100100
return err

0 commit comments

Comments
 (0)