From 4e6cc846a618ecef5c101727bbd03f6674044ab7 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 17 Jan 2018 12:38:37 -0600 Subject: Finally remove utils.Cfg (#8113) * finally remove utils.Cfg * fix compile error * another test compilation fix --- app/config.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/config.go') diff --git a/app/config.go b/app/config.go index 3039d4426..526d47a77 100644 --- a/app/config.go +++ b/app/config.go @@ -27,7 +27,6 @@ func (a *App) UpdateConfig(f func(*model.Config)) { updated := old.Clone() f(updated) a.config.Store(updated) - utils.Cfg = updated a.InvokeConfigListeners(old, updated) } @@ -48,7 +47,6 @@ func (a *App) LoadConfig(configFile string) *model.AppError { utils.ConfigureLog(&cfg.LogSettings) a.config.Store(cfg) - utils.Cfg = cfg utils.SetSiteURL(*cfg.ServiceSettings.SiteURL) -- cgit v1.2.3-1-g7c22