mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Don't panic on an empty configuration during merge
This commit is contained in:
@@ -97,6 +97,10 @@ func (s *Telemetry) GoString() string {
|
||||
|
||||
// Merge merges two configurations.
|
||||
func (c *Config) Merge(c2 *Config) *Config {
|
||||
if c2 == nil {
|
||||
return c
|
||||
}
|
||||
|
||||
result := new(Config)
|
||||
for _, l := range c.Listeners {
|
||||
result.Listeners = append(result.Listeners, l)
|
||||
|
||||
Reference in New Issue
Block a user