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 e4e6c50
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 e4e6c50

Please sign in to comment.