diff --git a/internal/cephfs/volume.go b/internal/cephfs/volume.go index 9a7c00059..d60b4de4b 100644 --- a/internal/cephfs/volume.go +++ b/internal/cephfs/volume.go @@ -144,10 +144,7 @@ func createVolume(ctx context.Context, volOptions *volumeOptions, cr *util.Crede // subvolume. If the command is not available as a fallback it will use // CreateVolume to resize the subvolume. func resizeVolume(ctx context.Context, volOptions *volumeOptions, cr *util.Credentials, volID volumeID, bytesQuota int64) error { - supported := false - ok := false - - if supported, ok = resizeSupportedList[volOptions.ClusterID]; supported || !ok { + if supported, ok := resizeSupportedList[volOptions.ClusterID]; supported || !ok { args := []string{ "fs", "subvolume",