Avoid vet warning: return copies lock value.

This commit is contained in:
Holger Obermaier 2022-01-25 11:27:03 +01:00
parent e7e51aa4fa
commit ffa2701914

View File

@ -91,12 +91,12 @@ type RuntimeConfig struct {
}
func prepare_runcfg() RuntimeConfig {
r := RuntimeConfig{}
r.Router = nil
r.CollectManager = nil
r.SinkManager = nil
r.ReceiveManager = nil
return r
return RuntimeConfig{
Router: nil,
CollectManager: nil,
SinkManager: nil,
ReceiveManager: nil,
}
}
//// Structure of the configuration file