Skip to content

Commit 5eec92b

Browse files
authored
Removed unnecessary line referencing LFS struct
go-gitea#4035 (comment) @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") ```
1 parent fa99e1b commit 5eec92b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

modules/setting/setting.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,6 @@ func NewContext() {
829829
LFS.ContentPath = filepath.Join(AppWorkPath, LFS.ContentPath)
830830
}
831831

832-
sec = Cfg.Section("LFS")
833832
LFS.HTTPAuthExpiry = sec.Key("LFS_HTTP_AUTH_EXPIRY").MustDuration(20 * time.Minute)
834833

835834
if LFS.StartServer {

0 commit comments

Comments
 (0)