Commit 3948a2d6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #45873 from YuPengZTE/devValidateUpdate

Automatic merge from submit-queue delete the code after "return" Signed-off-by: 's avataryupengzte <yu.peng36@zte.com.cn> **What this PR does / why we need it**: After return, the code is unreachable, delete it. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
parents 2879b2cb 25c2f621
...@@ -81,8 +81,6 @@ func (CustomResourceDefinitionStorageStrategy) ValidateUpdate(ctx genericapirequ ...@@ -81,8 +81,6 @@ func (CustomResourceDefinitionStorageStrategy) ValidateUpdate(ctx genericapirequ
} }
return validation.ValidateObjectMetaAccessorUpdate(objAccessor, oldAccessor, field.NewPath("metadata")) return validation.ValidateObjectMetaAccessorUpdate(objAccessor, oldAccessor, field.NewPath("metadata"))
return field.ErrorList{}
} }
func (a CustomResourceDefinitionStorageStrategy) GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { func (a CustomResourceDefinitionStorageStrategy) GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment