Skip to content

Commit

Permalink
Removed unnecessary line referencing LFS struct
Browse files Browse the repository at this point in the history
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")
```
  • Loading branch information
InonS committed Jun 4, 2018
1 parent d62bc33 commit 21481d7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 21481d7

Please sign in to comment.