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:
Niels de Vos 2025-04-29 12:38:32 +02:00 committed by mergify[bot]
parent 4ffa1d6c89
commit 0907f39d95

View File

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