agent/report.go
Function reportUnregisterAgent
has 6 return statements (exceeds 4 allowed). Invalid
Invalid
func reportUnregisterAgent() error {
config.Agent.Lock()
defer config.Agent.Unlock()
if config.Agent.MachineName == "" {
Function reportAlive
has 6 return statements (exceeds 4 allowed). Invalid
Invalid
func reportAlive() error {
config.Agent.Lock()
defer config.Agent.Unlock()
if config.Agent.MachineName == "" {