remove redundant conversion functions
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
This commit is contained in:
parent
f2d5b9343b
commit
e9adba5275
|
@ -140,12 +140,12 @@ func TestRemoveIrrelevantField(t *testing.T) {
|
|||
"name": "foo",
|
||||
},
|
||||
"secrets": []interface{}{
|
||||
conv(map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
"name": "foo-token-6pgxf",
|
||||
}),
|
||||
conv(map[string]interface{}{
|
||||
},
|
||||
map[string]interface{}{
|
||||
"name": "foo-dockercfg-zdr2j",
|
||||
}),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -226,7 +226,3 @@ func getShouldNotRemoveFields(t *test) ([]field, error) {
|
|||
}
|
||||
return shouldNotRemoveFields, nil
|
||||
}
|
||||
|
||||
func conv(m map[string]interface{}) interface{} {
|
||||
return m
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue