aboutsummaryrefslogtreecommitdiff
path: root/collector/tcpstat_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/tcpstat_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/tcpstat_linux.go')
-rw-r--r--collector/tcpstat_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/tcpstat_linux.go b/collector/tcpstat_linux.go
index 579b5a2..794fb13 100644
--- a/collector/tcpstat_linux.go
+++ b/collector/tcpstat_linux.go
@@ -73,7 +73,7 @@ func NewTCPStatCollector() (Collector, error) {
73 }, nil 73 }, nil
74} 74}
75 75
76func (c *tcpStatCollector) Update(ch chan<- prometheus.Metric) (err error) { 76func (c *tcpStatCollector) Update(ch chan<- prometheus.Metric) error {
77 tcpStats, err := getTCPStats(procFilePath("net/tcp")) 77 tcpStats, err := getTCPStats(procFilePath("net/tcp"))
78 if err != nil { 78 if err != nil {
79 return fmt.Errorf("couldn't get tcpstats: %s", err) 79 return fmt.Errorf("couldn't get tcpstats: %s", err)