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

@@ -12,8 +12,6 @@ import (
"encoding/json"
"errors"
"fmt"
lp "github.com/influxdata/line-protocol"
"gopkg.in/Knetic/govaluate.v2"
"io/ioutil"
"log"
"math"
@@ -22,6 +20,9 @@ import (
"strings"
"time"
"unsafe"
lp "github.com/influxdata/line-protocol"
"gopkg.in/Knetic/govaluate.v2"
)
type LikwidCollectorMetricConfig struct {
@@ -303,5 +304,4 @@ func (m *LikwidCollector) Close() {
C.perfmon_finalize()
C.topology_finalize()
}
return
}