Linting fixes.

This commit is contained in:
2021-11-21 14:45:09 +05:00
parent 16be332d38
commit 26ce90bb84
13 changed files with 69 additions and 55 deletions

View File

@@ -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.

View File

@@ -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.