From 56af1b3822bd34825cffcae98854032581244df0 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 19 Jul 2021 15:08:27 -0400 Subject: [PATCH] rbd: fix naming convention violations in options.go Fix up variable names that don't meet Go standards. Command: gofmt -w -r 'c_set -> cSet' rbd/options.go Signed-off-by: John Mulligan --- rbd/options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rbd/options.go b/rbd/options.go index 374cd3b..744f3ab 100644 --- a/rbd/options.go +++ b/rbd/options.go @@ -189,14 +189,14 @@ func (rio *ImageOptions) GetUint64(option ImageOption) (uint64, error) { // int rbd_image_options_is_set(rbd_image_options_t opts, int optname, // bool* is_set); func (rio *ImageOptions) IsSet(option ImageOption) (bool, error) { - var c_set C.bool + var cSet C.bool - ret := C.rbd_image_options_is_set(rio.options, C.int(option), &c_set) + ret := C.rbd_image_options_is_set(rio.options, C.int(option), &cSet) if ret != 0 { return false, fmt.Errorf("%v, could not check option %v", getError(ret), option) } - return bool(c_set), nil + return bool(cSet), nil } // Unset a given RbdImageOption.