Merge pull request #135 from prometheus/remove-unneeded-make
Remove unneeded `make` in empty slice initialization.
This commit is contained in:
commit
59f1949a76
|
@ -70,7 +70,7 @@ func (c *textFileCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
||||||
|
|
||||||
func (c *textFileCollector) parseTextFiles() []*dto.MetricFamily {
|
func (c *textFileCollector) parseTextFiles() []*dto.MetricFamily {
|
||||||
error := 0.0
|
error := 0.0
|
||||||
metricFamilies := make([]*dto.MetricFamily, 0)
|
var metricFamilies []*dto.MetricFamily
|
||||||
mtimes := map[string]time.Time{}
|
mtimes := map[string]time.Time{}
|
||||||
|
|
||||||
// Iterate over files and accumulate their metrics.
|
// Iterate over files and accumulate their metrics.
|
||||||
|
|
Loading…
Reference in New Issue