From 7f1694adc7d5fc1e5148415b80ae65168788539c Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Fri, 8 Oct 2021 13:27:36 +0200 Subject: [PATCH] Fix format of infiniband collector --- collectors/infinibandMetric.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/collectors/infinibandMetric.go b/collectors/infinibandMetric.go index a418ae2..8bd6fd3 100644 --- a/collectors/infinibandMetric.go +++ b/collectors/infinibandMetric.go @@ -25,11 +25,11 @@ func (m *InfinibandCollector) Init() error { m.tags = map[string]string{"type": "node"} _, err := ioutil.ReadFile(string(LIDFILE)) if err == nil { - _, err = ioutil.ReadFile(string(PERFQUERY)) - if err == nil { - m.init = true - } - } + _, err = ioutil.ReadFile(string(PERFQUERY)) + if err == nil { + m.init = true + } + } return err }