Skip to content

Commit 41e8981

Browse files
committed
Rename timeoutInMinutes to minutes in LocalTimer interface
https://claude.ai/code/session_01DTB35xCmhRgW5SQUsYAtAq
1 parent d62c550 commit 41e8981

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

localtimer.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
66
type 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.
1212
type 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

Comments
 (0)