mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
c89c68e9ea
golint has a pretty struct stylechek, it down not allow different variable names for methods on an object: pkg/rbd/rbd_util.go:970:1: receiver name rbdVol should be consistent with previous receiver name rv for rbdVolume (golint) func (rbdVol *rbdVolume) ensureEncryptionMetadataSet(ctx context.Context) error { ^ pkg/rbd/rbd_journal.go:166:26: ST1016: methods on the same type should have the same receiver name (seen 2x "rbdVol", 3x "rv") (stylecheck) func (rbdVol *rbdVolume) Exists(ctx context.Context) (bool, error) { ^ Rename the 'rbdVol' variable to 'rv' to make it consistent. Signed-off-by: Niels de Vos <ndevos@redhat.com> |
||
---|---|---|
.. | ||
cephfs | ||
csi-common | ||
journal | ||
liveness | ||
rbd | ||
util |