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,13 +3,14 @@ package collectors
import (
"encoding/json"
"fmt"
lp "github.com/influxdata/line-protocol"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"time"
lp "github.com/influxdata/line-protocol"
)
const HWMON_PATH = `/sys/class/hwmon`
@@ -105,5 +106,4 @@ func (m *TempCollector) Read(interval time.Duration, out *[]lp.MutableMetric) {
func (m *TempCollector) Close() {
m.init = false
return
}