diff --git a/api/rest/client/client.go b/api/rest/client/client.go index 74725732..4c950ba8 100644 --- a/api/rest/client/client.go +++ b/api/rest/client/client.go @@ -131,7 +131,7 @@ func (c *Client) setupHTTPClient() error { var prot ipnet.Protector if c.config.ProtectorKey != nil && len(c.config.ProtectorKey) > 0 { if len(c.config.ProtectorKey) != 32 { - return errors.New("Length of ProtectorKey should be 32") + return errors.New("length of ProtectorKey should be 32") } var key [32]byte copy(key[:], c.config.ProtectorKey) diff --git a/api/rest/restapi.go b/api/rest/restapi.go index ded4cf41..840eec0a 100644 --- a/api/rest/restapi.go +++ b/api/rest/restapi.go @@ -40,11 +40,11 @@ var ( // ErrNoEndpointEnabled is returned when the API is created but // no HTTPListenAddr, nor libp2p configuration fields, nor a libp2p // Host are provided. - ErrNoEndpointsEnabled = errors.New("Neither the libp2p nor the HTTP endpoints are enabled") + ErrNoEndpointsEnabled = errors.New("neither the libp2p nor the HTTP endpoints are enabled") // ErrHTTPEndpointNotEnabled is returned when trying to perform // operations that rely on the HTTPEndpoint but it is disabled. - ErrHTTPEndpointNotEnabled = errors.New("The HTTP endpoint is not enabled") + ErrHTTPEndpointNotEnabled = errors.New("the HTTP endpoint is not enabled") ) // API implements an API and aims to provides