diff options
-rw-r--r-- | context/context_test.go | 4 | ||||
-rw-r--r-- | util/util.go | 1 | ||||
-rw-r--r-- | util/util_test.go | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/context/context_test.go b/context/context_test.go index 66b857ffe822..4c95f058c0f1 100644 --- a/context/context_test.go +++ b/context/context_test.go @@ -100,7 +100,7 @@ func TestSubresourceVariableInheritance(t *testing.T) { "bar": "baz", }, Include: nil, - Parent: "parent", + Parent: "parent", }, }, BaseDir: "testdata", @@ -129,7 +129,7 @@ func TestSubresourceVariableInheritanceOverride(t *testing.T) { "foo": "newvalue", }, Include: nil, - Parent: "parent", + Parent: "parent", }, }, BaseDir: "testdata", diff --git a/util/util.go b/util/util.go index 3d05322efb16..ea9f636ac89a 100644 --- a/util/util.go +++ b/util/util.go @@ -11,7 +11,6 @@ func Merge(in1 *map[string]interface{}, in2 *map[string]interface{}) *map[string return in1 } - new := make(map[string]interface{}) for k, v := range *in1 { new[k] = v diff --git a/util/util_test.go b/util/util_test.go index c0805533576a..a6adcd713f1a 100644 --- a/util/util_test.go +++ b/util/util_test.go @@ -1,8 +1,8 @@ package util import ( - "testing" "reflect" + "testing" ) func TestMergeWithEmptyMap(t *testing.T) { |