mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
remove comments
This commit is contained in:
parent
9b39fe78ba
commit
c1290b149a
@ -78,15 +78,12 @@ func Parse(c *caddy.Controller) ([]Config, error) {
|
||||
cCfg = cfg.UserConfig
|
||||
|
||||
for c.NextBlock() {
|
||||
|
||||
switch c.Val() {
|
||||
// GLOBAL ONLY OPTIONS
|
||||
case "on":
|
||||
if !c.NextArg() {
|
||||
return configs, c.ArgErr()
|
||||
}
|
||||
baseURL = c.Val()
|
||||
// USER SPECIFIC OR GLOBAL
|
||||
case "frontmatter":
|
||||
if !c.NextArg() {
|
||||
return configs, c.ArgErr()
|
||||
@ -240,10 +237,6 @@ func Parse(c *caddy.Controller) ([]Config, error) {
|
||||
if err := appendConfig(cfg); err != nil {
|
||||
return configs, err
|
||||
}
|
||||
|
||||
fmt.Println(cfg.UserConfig)
|
||||
fmt.Println(cfg.Users["user1"])
|
||||
fmt.Println(cfg.Users["user2"])
|
||||
}
|
||||
|
||||
return configs, nil
|
||||
|
Loading…
Reference in New Issue
Block a user