mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-21 23:06:42 +00:00
cleanup: address golangci 'nilnesserr' issue
Inside VolumeGroupServer.ModifyVolumeGroupMembership() there is an error used in a return that could be `nil`. It seems the error that was returned isn't the correct one, and an other error object should have been returned instead. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
4ffa1d6c89
commit
0907f39d95
@ -403,7 +403,7 @@ func (vs *VolumeGroupServer) ModifyVolumeGroupMembership(
|
||||
codes.InvalidArgument,
|
||||
"failed to get the CSI ID of volume %q: %v",
|
||||
vol,
|
||||
err)
|
||||
idErr)
|
||||
}
|
||||
|
||||
beforeIDs[id] = vol
|
||||
|
Loading…
x
Reference in New Issue
Block a user