mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-19 04:40:19 +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> |
||
---|---|---|
.. | ||
controllerserver.go | ||
driver.go | ||
errors.go | ||
identityserver.go | ||
nodeserver_test.go | ||
nodeserver.go | ||
rbd_attach.go | ||
rbd_journal.go | ||
rbd_util_test.go | ||
rbd_util.go |