Remove redundant assignment to volumeAttachment

This commit is contained in:
Ted Yu 2019-06-03 10:48:25 -07:00 committed by Ted Yu
parent 4b4420f53e
commit 5e60c406da

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{}
}