summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-04-13 10:56:09 -0400
committerChristopher Speller <crspeller@gmail.com>2018-04-13 07:56:09 -0700
commitae5e324be8078927bf088bc9dae37189a6ecea6f (patch)
treee8f0a0c2a4c6fc2156ed7af58ed91260a1b147d6 /model/config.go
parent911b409936521827152b0a491d3e02ed81202694 (diff)
downloadchat-ae5e324be8078927bf088bc9dae37189a6ecea6f.tar.gz
chat-ae5e324be8078927bf088bc9dae37189a6ecea6f.tar.bz2
chat-ae5e324be8078927bf088bc9dae37189a6ecea6f.zip
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
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/config.go b/model/config.go
index 8d1a61926..93533b8aa 100644
--- a/model/config.go
+++ b/model/config.go
@@ -1715,8 +1715,8 @@ func (s *MessageExportSettings) SetDefaults() {
if s.GlobalRelaySettings == nil {
s.GlobalRelaySettings = &GlobalRelayMessageExportSettings{}
- s.GlobalRelaySettings.SetDefaults()
}
+ s.GlobalRelaySettings.SetDefaults()
}
type DisplaySettings struct {