mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-16 15:41:11 +08:00
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") ```
This commit is contained in:
parent
d62bc3362b
commit
1bcabb8b1e
@ -829,7 +829,6 @@ func NewContext() {
|
|||||||
LFS.ContentPath = filepath.Join(AppWorkPath, LFS.ContentPath)
|
LFS.ContentPath = filepath.Join(AppWorkPath, LFS.ContentPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
sec = Cfg.Section("LFS")
|
|
||||||
LFS.HTTPAuthExpiry = sec.Key("LFS_HTTP_AUTH_EXPIRY").MustDuration(20 * time.Minute)
|
LFS.HTTPAuthExpiry = sec.Key("LFS_HTTP_AUTH_EXPIRY").MustDuration(20 * time.Minute)
|
||||||
|
|
||||||
if LFS.StartServer {
|
if LFS.StartServer {
|
||||||
|
Loading…
Reference in New Issue
Block a user