Skip to content

Commit

Permalink
Simplify check for volume capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
nachtjasmin committed Aug 20, 2024
1 parent 34161e5 commit 18b0b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 18b0b7c

Please sign in to comment.