mv TimeOut -> Timeout

This commit is contained in:
2023-08-16 10:58:44 +02:00
parent 8f6fc72bfb
commit 8a1c16f402
4 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ func NewSingleAction(config internal.ActionConfig, c chan bool) (Action, error)
return NewPrint(config, c) return NewPrint(config, c)
} }
if config.Type == "TimeOut" { if config.Type == "Timeout" {
return NewTimeOut(config, c) return NewTimeOut(config, c)
} }

View File

@@ -36,7 +36,7 @@ func NewTimeOut(config internal.ActionConfig, c chan bool) (Action, error) {
} }
func (p TimeOut) GetName() string { func (p TimeOut) GetName() string {
return "TimeOut" return "Timeout"
} }
func (p TimeOut) GetDescription() string { func (p TimeOut) GetDescription() string {

View File

@@ -41,7 +41,7 @@ func NewTimeOut(config internal.KillSwitchConfig) (TimeOut, error) {
} }
func (p TimeOut) GetName() string { func (p TimeOut) GetName() string {
return "TimeOut" return "Timeout"
} }
func (p TimeOut) GetDescription() string { func (p TimeOut) GetDescription() string {

View File

@@ -11,7 +11,7 @@ type Trigger interface {
} }
func NewTrigger(config internal.KillSwitchConfig) (Trigger, error) { func NewTrigger(config internal.KillSwitchConfig) (Trigger, error) {
if config.Type == "TimeOut" { if config.Type == "Timeout" {
return NewTimeOut(config) return NewTimeOut(config)
} }