Linting fixes.
This commit is contained in:
@@ -23,13 +23,14 @@ type Client struct {
|
||||
|
||||
// NewClient creates new Metricator client.
|
||||
func NewClient(config *Config, logger *logger.Logger) *Client {
|
||||
c := &Client{
|
||||
// nolint:exhaustivestruct
|
||||
client := &Client{
|
||||
config: config,
|
||||
logger: logger,
|
||||
}
|
||||
c.initialize()
|
||||
client.initialize()
|
||||
|
||||
return c
|
||||
return client
|
||||
}
|
||||
|
||||
// Executes request and parses it's contents.
|
||||
|
@@ -18,7 +18,7 @@ type Metric struct {
|
||||
|
||||
// NewMetric creates new structure for storing single metric data.
|
||||
func NewMetric(name, mType, description string, params []string) Metric {
|
||||
m := Metric{
|
||||
metric := Metric{
|
||||
BaseName: name,
|
||||
Name: name,
|
||||
Description: description,
|
||||
@@ -27,7 +27,7 @@ func NewMetric(name, mType, description string, params []string) Metric {
|
||||
Value: "",
|
||||
}
|
||||
|
||||
return m
|
||||
return metric
|
||||
}
|
||||
|
||||
// GetValue returns metric's value.
|
||||
|
Reference in New Issue
Block a user