MM-9977: test config.SetDefaults leaves nothing nil (#8610)

* MM-9977: test config.SetDefaults leaves nothing nil

* clarify test default config test cases

* comment re: allowing nil slice

* extend config SetDefaults to handle partially initialized configs
Этот коммит содержится в:
Jesse Hallam
2018-04-13 10:56:09 -04:00
коммит произвёл Christopher Speller
родитель 911b409936
Коммит ae5e324be8
4 изменённых файлов: 289 добавлений и 1 удалений

Просмотреть файл

@@ -1715,8 +1715,8 @@ func (s *MessageExportSettings) SetDefaults() {
if s.GlobalRelaySettings == nil {
s.GlobalRelaySettings = &GlobalRelayMessageExportSettings{}
s.GlobalRelaySettings.SetDefaults()
}
s.GlobalRelaySettings.SetDefaults()
}
type DisplaySettings struct {