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 }