From c7034357900029e05b58d099104b1ad443edac73 Mon Sep 17 00:00:00 2001 From: Tobias Schmidt Date: Tue, 28 Feb 2017 12:44:53 -0400 Subject: Fix all open go lint and vet issues --- node_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node_exporter.go') diff --git a/node_exporter.go b/node_exporter.go index 3e87bc4..ec69c05 100644 --- a/node_exporter.go +++ b/node_exporter.go @@ -72,7 +72,7 @@ func (n NodeCollector) Collect(ch chan<- prometheus.Metric) { } func filterAvailableCollectors(collectors string) string { - availableCollectors := make([]string, 0) + var availableCollectors []string for _, c := range strings.Split(collectors, ",") { _, ok := collector.Factories[c] if ok { -- cgit v1.2.3