summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorInon S <InonS@users.noreply.github.com>2018-06-04 21:07:42 +0300
committerLauris BH <lauris@nix.lv>2018-06-04 21:07:42 +0300
commit1bcabb8b1ed3740bd8d0caa399df664521ccfaa6 (patch)
tree8ab65663d5fc2abfca97cafbf4b8582da2fc8b66 /modules/setting
parentd62bc3362bb0cd932ce4e346ff16f82c1da0f9cc (diff)
downloadgitea-1bcabb8b1ed3740bd8d0caa399df664521ccfaa6.tar.gz
gitea-1bcabb8b1ed3740bd8d0caa399df664521ccfaa6.zip
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") ```
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go1
1 files changed, 0 insertions, 1 deletions
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 {