aboutsummaryrefslogtreecommitdiff
path: root/collector/vmstat_linux.go
diff options
context:
space:
mode:
authorTobias Schmidt <tobidt@gmail.com>2017-02-28 14:47:20 -0400
committerTobias Schmidt <tobidt@gmail.com>2017-02-28 16:04:25 -0400
commit922e74d58fddd257cf9a0a323d95932c6a66a29a (patch)
treee07b23d009fad52d8757bb6a313c3b9fac07e2d8 /collector/vmstat_linux.go
parent084e585c2af0a886dad527dc67184a4e6bc10747 (diff)
downloadprometheus_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/vmstat_linux.go')
-rw-r--r--collector/vmstat_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/vmstat_linux.go b/collector/vmstat_linux.go
index 3f68c14..c6a6625 100644
--- a/collector/vmstat_linux.go
+++ b/collector/vmstat_linux.go
@@ -40,7 +40,7 @@ func NewvmStatCollector() (Collector, error) {
40 return &vmStatCollector{}, nil 40 return &vmStatCollector{}, nil
41} 41}
42 42
43func (c *vmStatCollector) Update(ch chan<- prometheus.Metric) (err error) { 43func (c *vmStatCollector) Update(ch chan<- prometheus.Metric) error {
44 file, err := os.Open(procFilePath("vmstat")) 44 file, err := os.Open(procFilePath("vmstat"))
45 if err != nil { 45 if err != nil {
46 return err 46 return err