aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/storage.go')
-rw-r--r--modules/setting/storage.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/setting/storage.go b/modules/setting/storage.go
index e743d6c20c..27788da1ff 100644
--- a/modules/setting/storage.go
+++ b/modules/setting/storage.go
@@ -32,14 +32,12 @@ func (s *Storage) MapTo(v interface{}) error {
}
func getStorage(name, typ string, overrides ...*ini.Section) Storage {
- sectionName := "storage"
- if len(name) > 0 {
- sectionName = sectionName + "." + typ
- }
+ const sectionName = "storage"
sec := Cfg.Section(sectionName)
if len(overrides) == 0 {
overrides = []*ini.Section{
+ Cfg.Section(sectionName + "." + typ),
Cfg.Section(sectionName + "." + name),
}
}