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
|
// - bucket
|
||||||
// - encrypt
|
// - encrypt
|
||||||
func FromParameters(parameters map[string]interface{}) (*Driver, error) {
|
func FromParameters(parameters map[string]interface{}) (*Driver, error) {
|
||||||
accessKey, ok := parameters["accesskey"]
|
accessKey, _ := parameters["accesskey"]
|
||||||
if !ok {
|
secretKey, _ := parameters["secretkey"]
|
||||||
accessKey = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
secretKey, ok := parameters["secretkey"]
|
|
||||||
if !ok {
|
|
||||||
secretKey = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
regionName, ok := parameters["region"]
|
regionName, ok := parameters["region"]
|
||||||
if !ok || fmt.Sprint(regionName) == "" {
|
if !ok || fmt.Sprint(regionName) == "" {
|
||||||
|
|
Loading…
Reference in a new issue