chore(server): repair static check errors

pull/5869/head
Pavel Zavora 2022-02-21 11:21:43 +01:00
parent a172b72aae
commit 2cc86aa04c
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ func (p *postKapacitorRequest) Valid(defaultOrgID string) error {
return fmt.Errorf("invalid source URI: %v", err) return fmt.Errorf("invalid source URI: %v", err)
} }
if len(url.Scheme) == 0 { if len(url.Scheme) == 0 {
return fmt.Errorf("Invalid URL; no URL scheme defined") return fmt.Errorf("invalid URL; no URL scheme defined")
} }
return nil return nil
@ -250,7 +250,7 @@ func (p *patchKapacitorRequest) Valid() error {
return fmt.Errorf("invalid source URI: %v", err) return fmt.Errorf("invalid source URI: %v", err)
} }
if len(url.Scheme) == 0 { if len(url.Scheme) == 0 {
return fmt.Errorf("Invalid URL; no URL scheme defined") return fmt.Errorf("invalid URL; no URL scheme defined")
} }
} }
return nil return nil
@ -661,7 +661,7 @@ func (k *KapacitorStatus) Valid() error {
if k.Status == "enabled" || k.Status == "disabled" { if k.Status == "enabled" || k.Status == "disabled" {
return nil return nil
} }
return fmt.Errorf("Invalid Kapacitor status: %s", k.Status) return fmt.Errorf("invalid Kapacitor status: %s", k.Status)
} }
// KapacitorRulesStatus proxies PATCH to kapacitor to enable/disable tasks // KapacitorRulesStatus proxies PATCH to kapacitor to enable/disable tasks