mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
[trival]remove duplicated code from unit test
This commit is contained in:
parent
aed9ad4b08
commit
acb90b6547
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user