diff options
author | Tobias Schmidt <tobidt@gmail.com> | 2017-02-28 14:47:20 -0400 |
---|---|---|
committer | Tobias Schmidt <tobidt@gmail.com> | 2017-02-28 16:04:25 -0400 |
commit | 922e74d58fddd257cf9a0a323d95932c6a66a29a (patch) | |
tree | e07b23d009fad52d8757bb6a313c3b9fac07e2d8 /collector/infiniband_linux.go | |
parent | 084e585c2af0a886dad527dc67184a4e6bc10747 (diff) | |
download | prometheus_node_collector-922e74d58fddd257cf9a0a323d95932c6a66a29a.tar.bz2 prometheus_node_collector-922e74d58fddd257cf9a0a323d95932c6a66a29a.tar.xz prometheus_node_collector-922e74d58fddd257cf9a0a323d95932c6a66a29a.zip |
Remove unnecessarily named return variables
Named return variables should only be used to describe the returned type
further, e.g. `err error` doesn't add any new information and is just
stutter.
Diffstat (limited to 'collector/infiniband_linux.go')
-rw-r--r-- | collector/infiniband_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/infiniband_linux.go b/collector/infiniband_linux.go index d514105..9fbd3f9 100644 --- a/collector/infiniband_linux.go +++ b/collector/infiniband_linux.go | |||
@@ -128,7 +128,7 @@ func readMetric(directory, metricFile string) (uint64, error) { | |||
128 | return metric, nil | 128 | return metric, nil |
129 | } | 129 | } |
130 | 130 | ||
131 | func (c *infinibandCollector) Update(ch chan<- prometheus.Metric) (err error) { | 131 | func (c *infinibandCollector) Update(ch chan<- prometheus.Metric) error { |
132 | devices, err := infinibandDevices(sysFilePath(infinibandPath)) | 132 | devices, err := infinibandDevices(sysFilePath(infinibandPath)) |
133 | 133 | ||
134 | // If no devices are found or another error is raised while attempting to find devices, | 134 | // If no devices are found or another error is raised while attempting to find devices, |