From 777a8ddd90de1b3b114f4c1cf33712b6b72c7dfe Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Sun, 11 Oct 2015 17:05:40 +0200 Subject: [PATCH] Remove unneeded `make` in empty slice initialization. --- collector/textfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/textfile.go b/collector/textfile.go index d065d0cb..a77ad1e9 100644 --- a/collector/textfile.go +++ b/collector/textfile.go @@ -70,7 +70,7 @@ func (c *textFileCollector) Update(ch chan<- prometheus.Metric) (err error) { func (c *textFileCollector) parseTextFiles() []*dto.MetricFamily { error := 0.0 - metricFamilies := make([]*dto.MetricFamily, 0) + var metricFamilies []*dto.MetricFamily mtimes := map[string]time.Time{} // Iterate over files and accumulate their metrics.