From 21481d714ce0fe43df51d801db5afded86155874 Mon Sep 17 00:00:00 2001 From: Inon S Date: Mon, 4 Jun 2018 17:28:14 +0300 Subject: [PATCH] Removed unnecessary line referencing LFS struct https://github.com/go-gitea/gitea/pull/4035#issuecomment-394286204 @ohwgiles points out that the config section should, in fact, still be in accordance with the "server" struct, which contains the "LFS" struct. I should just remove the line ``` sec = Cfg.Section("LFS") ``` --- modules/setting/setting.go | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index c8add5fd31a5..cf9f59853bb6 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -829,7 +829,6 @@ func NewContext() { LFS.ContentPath = filepath.Join(AppWorkPath, LFS.ContentPath) } - sec = Cfg.Section("LFS") LFS.HTTPAuthExpiry = sec.Key("LFS_HTTP_AUTH_EXPIRY").MustDuration(20 * time.Minute) if LFS.StartServer {