diff --git a/pkg/controller/utils.go b/pkg/controller/utils.go index 847b896..8415481 100644 --- a/pkg/controller/utils.go +++ b/pkg/controller/utils.go @@ -80,7 +80,7 @@ func checkValidateVolumeCapabilitiesRequest(req *csi.ValidateVolumeCapabilitiesR return ErrVolumeIDNotProvided } - if req.VolumeCapabilities == nil || len(req.VolumeCapabilities) == 0 { + if len(req.VolumeCapabilities) == 0 { return ErrVolumeCapabilitiesNotProvided }