1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

src/parse_request.go: linter does not like capitalized error strings.

This commit is contained in:
Henrik Hautakoski 2022-10-03 16:37:34 +02:00
parent bc6f857c1e
commit f77edfe321
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
2 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ func ParseRequest(request string) (api.ApiInterface, error) {
p := strings.Split(strings.TrimSpace(request), "|")
if len(p) < 2 {
return nil, fmt.Errorf("Invalid number of parameters in agent request")
return nil, fmt.Errorf("invalid number of parameters in agent request")
}
a := ParseArguments(p[1:])
@ -62,5 +62,5 @@ func ParseRequest(request string) (api.ApiInterface, error) {
return api.NewDebugApi(a.url), nil
}
return nil, fmt.Errorf("Invalid API '%s'", p[0])
return nil, fmt.Errorf("invalid API '%s'", p[0])
}