From 1bcabb8b1ed3740bd8d0caa399df664521ccfaa6 Mon Sep 17 00:00:00 2001 From: Inon S Date: Mon, 4 Jun 2018 21:07:42 +0300 Subject: [PATCH] Removed unnecessary line referencing LFS struct (#4113) 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 c8add5fd31..cf9f59853b 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 {