diff options
author | Inon S <InonS@users.noreply.github.com> | 2018-06-04 21:07:42 +0300 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-06-04 21:07:42 +0300 |
commit | 1bcabb8b1ed3740bd8d0caa399df664521ccfaa6 (patch) | |
tree | 8ab65663d5fc2abfca97cafbf4b8582da2fc8b66 /modules | |
parent | d62bc3362bb0cd932ce4e346ff16f82c1da0f9cc (diff) | |
download | gitea-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')
-rw-r--r-- | modules/setting/setting.go | 1 |
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 { |