forked from TrueCloudLab/distribution
Minor style change
This commit is contained in:
parent
11ed0515d0
commit
a952c77b4a
1 changed files with 2 additions and 9 deletions
|
@ -53,15 +53,8 @@ type Driver struct {
|
|||
// - bucket
|
||||
// - encrypt
|
||||
func FromParameters(parameters map[string]interface{}) (*Driver, error) {
|
||||
accessKey, ok := parameters["accesskey"]
|
||||
if !ok {
|
||||
accessKey = ""
|
||||
}
|
||||
|
||||
secretKey, ok := parameters["secretkey"]
|
||||
if !ok {
|
||||
secretKey = ""
|
||||
}
|
||||
accessKey, _ := parameters["accesskey"]
|
||||
secretKey, _ := parameters["secretkey"]
|
||||
|
||||
regionName, ok := parameters["region"]
|
||||
if !ok || fmt.Sprint(regionName) == "" {
|
||||
|
|
Loading…
Reference in a new issue