@@ -14,7 +14,7 @@ func DeleteNotPassParams(params *map[string]interface{}, notPassParams []string)
1414 }
1515}
1616
17- // merges two interfaces. In cases where a value is defined for both 'overridingInterface' and
17+ // MergeInterfaces merges two interfaces. In cases where a value is defined for both 'overridingInterface' and
1818// 'inferiorInterface' the value in 'overridingInterface' will take precedence.
1919func MergeInterfaces (overridingInterface , inferiorInterface interface {}) interface {} {
2020 switch overriding := overridingInterface .(type ) {
@@ -35,9 +35,7 @@ func MergeInterfaces(overridingInterface, inferiorInterface interface{}) interfa
3535 if ! ok {
3636 return overriding
3737 }
38- for i := range list {
39- overriding = append (overriding , list [i ])
40- }
38+ overriding = append (overriding , list )
4139 return overriding
4240 case nil :
4341 // mergeClouds(nil, map[string]interface{...}) -> map[string]interface{...}
@@ -63,14 +61,14 @@ func PrependString(item string, slice []string) []string {
6361 return result
6462}
6563
66- func In (item interface {}, slice interface {}) bool {
67- for _ , it := range slice .([]interface {}) {
68- if reflect .DeepEqual (item , it ) {
69- return true
70- }
71- }
72- return false
73- }
64+ // func In(item interface{}, slice interface{}) bool {
65+ // for _, it := range slice.([]interface{}) {
66+ // if reflect.DeepEqual(item, it) {
67+ // return true
68+ // }
69+ // }
70+ // return false
71+ // }
7472
7573// GetRegion returns the region that was specified in the auth options. If a
7674// region was not set it returns value from env OS_REGION_NAME
0 commit comments