mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-29 10:06:41 +00:00
The gocyclo linter complains about the high complexity of the CreateVolume() function: > pkg/rbd/controllerserver.go:133:1: cyclomatic complexity 21 of func `(*ControllerServer).CreateVolume` is high (> 20) (gocyclo) By splitting it up and separeting the creation of an exisint CSI Volume object in buildCreateVolumeResponse(), the gocyclic linter does not complain any longer. Signed-off-by: Niels de Vos <ndevos@redhat.com>