|
|
@ -95,8 +95,8 @@ func NewMinio(cfg config.Config) (Storage, error) { |
|
|
|
mio.secret = opts.Secret |
|
|
|
mio.secure = opts.Secure |
|
|
|
} |
|
|
|
if s := cfg.GetString("root"); s == "" { |
|
|
|
return nil, fmt.Errorf("root can not be empty") |
|
|
|
if s := cfg.GetString("bucket"); s == "" { |
|
|
|
return nil, fmt.Errorf("bucket can not be empty") |
|
|
|
} else { |
|
|
|
mio.bucket = s |
|
|
|
} |
|
|
|