remove redundant conversion functions

Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
This commit is contained in:
whitewindmills 2023-03-15 11:28:28 +08:00
parent f2d5b9343b
commit e9adba5275
1 changed files with 4 additions and 8 deletions

View File

@ -140,12 +140,12 @@ func TestRemoveIrrelevantField(t *testing.T) {
"name": "foo", "name": "foo",
}, },
"secrets": []interface{}{ "secrets": []interface{}{
conv(map[string]interface{}{ map[string]interface{}{
"name": "foo-token-6pgxf", "name": "foo-token-6pgxf",
}), },
conv(map[string]interface{}{ map[string]interface{}{
"name": "foo-dockercfg-zdr2j", "name": "foo-dockercfg-zdr2j",
}), },
}, },
}, },
}, },
@ -226,7 +226,3 @@ func getShouldNotRemoveFields(t *test) ([]field, error) {
} }
return shouldNotRemoveFields, nil return shouldNotRemoveFields, nil
} }
func conv(m map[string]interface{}) interface{} {
return m
}