From 5e60c406dae7faa9680fc6a8885d1e44f28be42c Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Mon, 3 Jun 2019 10:48:25 -0700 Subject: [PATCH] Remove redundant assignment to volumeAttachment --- pkg/registry/storage/volumeattachment/strategy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/registry/storage/volumeattachment/strategy.go b/pkg/registry/storage/volumeattachment/strategy.go index 183fe02d955..b00712c6022 100644 --- a/pkg/registry/storage/volumeattachment/strategy.go +++ b/pkg/registry/storage/volumeattachment/strategy.go @@ -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{} }