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

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