Avoid staticcheck warning: redundant return statement

This commit is contained in:
Holger Obermaier
2022-01-21 14:35:52 +01:00
parent 83b784e6f0
commit 5dd2af4e8f
15 changed files with 34 additions and 38 deletions

View File

@@ -3,12 +3,13 @@ package collectors
import (
"encoding/json"
"errors"
lp "github.com/influxdata/line-protocol"
"io/ioutil"
"log"
"strconv"
"strings"
"time"
lp "github.com/influxdata/line-protocol"
)
const LUSTREFILE = `/proc/fs/lustre/llite/lnec-XXXXXX/stats`
@@ -102,5 +103,4 @@ func (m *LustreCollector) Read(interval time.Duration, out *[]lp.MutableMetric)
func (m *LustreCollector) Close() {
m.init = false
return
}