mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +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{}
|
||||
switch patchType {
|
||||
case types.JSONPatchType:
|
||||
continue
|
||||
|
||||
case types.StrategicMergePatchType:
|
||||
patch, err = strategicpatch.CreateTwoWayMergePatch(originalObjJS, changedJS, versionedObj)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user