@@ -4,15 +4,15 @@ import config "github.com/remotemobprogramming/mob/v5/configuration"
44
55// LocalTimer abstracts the local timer functionality so different implementations can be used.
66type LocalTimer interface {
7- StartTimer (timeoutInMinutes int , configuration config.Configuration ) error
8- StartBreakTimer (timeoutInMinutes int , configuration config.Configuration ) error
7+ StartTimer (minutes int , configuration config.Configuration ) error
8+ StartBreakTimer (minutes int , configuration config.Configuration ) error
99}
1010
1111// ProcessLocalTimer is the default LocalTimer implementation that uses background OS processes.
1212type ProcessLocalTimer struct {}
1313
14- func (t ProcessLocalTimer ) StartTimer (timeoutInMinutes int , configuration config.Configuration ) error {
15- timeoutInSeconds := timeoutInMinutes * 60
14+ func (t ProcessLocalTimer ) StartTimer (minutes int , configuration config.Configuration ) error {
15+ timeoutInSeconds := minutes * 60
1616 return executeCommandsInBackgroundProcess (
1717 getSleepCommand (timeoutInSeconds ),
1818 getVoiceCommand (configuration .VoiceMessage , configuration .VoiceCommand ),
@@ -21,8 +21,8 @@ func (t ProcessLocalTimer) StartTimer(timeoutInMinutes int, configuration config
2121 )
2222}
2323
24- func (t ProcessLocalTimer ) StartBreakTimer (timeoutInMinutes int , configuration config.Configuration ) error {
25- timeoutInSeconds := timeoutInMinutes * 60
24+ func (t ProcessLocalTimer ) StartBreakTimer (minutes int , configuration config.Configuration ) error {
25+ timeoutInSeconds := minutes * 60
2626 return executeCommandsInBackgroundProcess (
2727 getSleepCommand (timeoutInSeconds ),
2828 getVoiceCommand ("mob start" , configuration .VoiceCommand ),
0 commit comments