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 { func prepare_runcfg() RuntimeConfig {
r := RuntimeConfig{} return RuntimeConfig{
r.Router = nil Router: nil,
r.CollectManager = nil CollectManager: nil,
r.SinkManager = nil SinkManager: nil,
r.ReceiveManager = nil ReceiveManager: nil,
return r }
} }
//// Structure of the configuration file //// Structure of the configuration file