mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Remove unneeded make
in empty slice initialization.
This commit is contained in:
parent
e70cbd2045
commit
777a8ddd90
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue