Skip to content

Commit fcb1f07

Browse files
committed
govet nil pointer fix
1 parent c17ccd4 commit fcb1f07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/driver/node.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,10 @@ func (d *nodeService) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpu
383383
}
384384

385385
func (d *nodeService) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error) {
386-
klog.V(4).Infof("NodeGetVolumeStats: called with args %+v", *req)
387386
var resp *csi.NodeGetVolumeStatsResponse
387+
if req != nil {
388+
klog.V(4).Infof("NodeGetVolumeStats: called with args %+v", *req)
389+
}
388390

389391
if req == nil || req.VolumeId == "" {
390392
return nil, status.Error(codes.InvalidArgument, "Volume ID not provided")

0 commit comments

Comments
 (0)