Minor style change

This commit is contained in:
Andrey Kostov 2014-12-19 23:32:39 +02:00
parent 11ed0515d0
commit a952c77b4a

View file

@ -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) == "" {