Avoid staticcheck warning: redundant return statement

This commit is contained in:
Holger Obermaier
2022-01-21 15:12:14 +01:00
parent 7a54a9b170
commit 699f69ff59
16 changed files with 34 additions and 41 deletions

View File

@@ -2,12 +2,12 @@ package sinks
import (
"encoding/json"
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
"log"
"os"
"sync"
)
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
)
var AvailableSinks = map[string]Sink{
"influxdb": &InfluxSink{},
@@ -129,7 +129,6 @@ func (sm *sinkManager) AddOutput(rawConfig json.RawMessage) error {
func (sm *sinkManager) Close() {
sm.done <- true
log.Print("[SinkManager] CLOSE")
return
}
func New(wg *sync.WaitGroup, sinkConfigFile string) (SinkManager, error) {

View File

@@ -66,6 +66,4 @@ func (s *StdoutSink) Flush() error {
return nil
}
func (s *StdoutSink) Close() {
return
}
func (s *StdoutSink) Close() {}