You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
simplify
This commit is contained in:
@@ -178,8 +178,8 @@ func New(database string, base User) (*FileManager, error) {
|
||||
err = db.Get("config", "commands", &m.Commands)
|
||||
if err != nil && err == storm.ErrNotFound {
|
||||
m.Commands = map[string][]string{
|
||||
"before_save": []string{},
|
||||
"after_save": []string{},
|
||||
"before_save": {},
|
||||
"after_save": {},
|
||||
}
|
||||
err = db.Set("config", "commands", m.Commands)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user