[trival]remove duplicated code from unit test
This commit is contained in:
@@ -310,9 +310,6 @@ func (tc *patchTestCase) Run(t *testing.T) {
|
|||||||
|
|
||||||
patch := []byte{}
|
patch := []byte{}
|
||||||
switch patchType {
|
switch patchType {
|
||||||
case types.JSONPatchType:
|
|
||||||
continue
|
|
||||||
|
|
||||||
case types.StrategicMergePatchType:
|
case types.StrategicMergePatchType:
|
||||||
patch, err = strategicpatch.CreateTwoWayMergePatch(originalObjJS, changedJS, versionedObj)
|
patch, err = strategicpatch.CreateTwoWayMergePatch(originalObjJS, changedJS, versionedObj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user