Avoid staticcheck warning: redundant return statement

This commit is contained in:
Holger Obermaier
2022-01-21 14:35:52 +01:00
parent 611ac0fcb0
commit 72722eff31
15 changed files with 34 additions and 38 deletions

View File

@@ -4,11 +4,12 @@ import (
"encoding/json"
"errors"
"fmt"
lp "github.com/influxdata/line-protocol"
"log"
"os/exec"
"strings"
"time"
lp "github.com/influxdata/line-protocol"
)
const MAX_NUM_PROCS = 10
@@ -74,5 +75,4 @@ func (m *TopProcsCollector) Read(interval time.Duration, out *[]lp.MutableMetric
func (m *TopProcsCollector) Close() {
m.init = false
return
}