From 18b0b7c355783db3a3c90db64f36c364f5bd0298 Mon Sep 17 00:00:00 2001 From: Jasmin Oster Date: Tue, 20 Aug 2024 12:17:03 +0200 Subject: [PATCH] Simplify check for volume capabilities --- pkg/controller/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }