Skip to content

Commit aa19e02

Browse files
committed
Fix test
1 parent 739ac25 commit aa19e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func getStorage(name, typ string, targetSec *ini.Section) Storage {
4444
sec.Key("MINIO_USE_SSL").MustBool(false)
4545

4646
if targetSec == nil {
47-
targetSec = &ini.Section{}
47+
targetSec, _ = Cfg.NewSection(name)
4848
}
4949

5050
var storage Storage

0 commit comments

Comments
 (0)