@@ -587,9 +587,7 @@ func (cloud *CloudProvider) deleteZonalDisk(ctx context.Context, project, zone,
587
587
if err != nil {
588
588
return err
589
589
}
590
- // if op != nil {
591
590
klog .V (5 ).Infof ("DeleteDisk operation %s for disk %s" , op .Name , name )
592
- // }
593
591
return nil
594
592
}
595
593
@@ -606,9 +604,7 @@ func (cloud *CloudProvider) deleteRegionalDisk(ctx context.Context, project, reg
606
604
if err != nil {
607
605
return err
608
606
}
609
- // if op != nil {
610
607
klog .V (5 ).Infof ("DeleteDisk operation %s for disk %s" , op .Name , name )
611
- // }
612
608
return nil
613
609
}
614
610
@@ -636,9 +632,7 @@ func (cloud *CloudProvider) AttachDisk(ctx context.Context, project string, volK
636
632
if err != nil {
637
633
return fmt .Errorf ("failed when waiting for zonal op: %v" , err )
638
634
}
639
- // if op != nil {
640
635
klog .V (5 ).Infof ("AttachDisk operation %s for disk %s" , op .Name , attachedDiskV1 .DeviceName )
641
- // }
642
636
return nil
643
637
}
644
638
@@ -652,9 +646,7 @@ func (cloud *CloudProvider) DetachDisk(ctx context.Context, project, deviceName,
652
646
if err != nil {
653
647
return err
654
648
}
655
- if op != nil {
656
- klog .V (5 ).Infof ("DetachDisk operation %s for disk %s" , op .Name , deviceName )
657
- }
649
+ klog .V (5 ).Infof ("DetachDisk operation %s for disk %s" , op .Name , deviceName )
658
650
return nil
659
651
}
660
652
@@ -868,9 +860,8 @@ func (cloud *CloudProvider) resizeZonalDisk(ctx context.Context, project string,
868
860
if err != nil {
869
861
return - 1 , fmt .Errorf ("failed waiting for op for zonal resize for %s: %v" , volKey .String (), err )
870
862
}
871
- // if op != nil {
863
+
872
864
klog .V (5 ).Infof ("ResizeDisk operation %s for disk %s" , op .Name , volKey .Name )
873
- // }
874
865
return requestGb , nil
875
866
}
876
867
@@ -888,9 +879,8 @@ func (cloud *CloudProvider) resizeRegionalDisk(ctx context.Context, project stri
888
879
if err != nil {
889
880
return - 1 , fmt .Errorf ("failed waiting for op for regional resize for %s: %v" , volKey .String (), err )
890
881
}
891
- // if op != nil {
882
+
892
883
klog .V (5 ).Infof ("ResizeDisk operation %s for disk %s" , op .Name , volKey .Name )
893
- // }
894
884
return requestGb , nil
895
885
}
896
886
0 commit comments