Merge pull request #78659 from tedyu/rm-vol-attach

Remove redundant assignment to volumeAttachment
This commit is contained in:
Kubernetes Prow Robot 2019-06-22 18:41:16 -07:00 committed by GitHub
commit ccc85adf88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,6 @@ func (volumeAttachmentStrategy) PrepareForCreate(ctx context.Context, obj runtim
case storageapiv1beta1.SchemeGroupVersion:
// allow modification of status for v1beta1
default:
volumeAttachment := obj.(*storage.VolumeAttachment)
volumeAttachment.Status = storage.VolumeAttachmentStatus{}
}