Skip to content

Commit 489855e

Browse files
committed
trivial: camelCase variable name
Signed-off-by: Stephen Finucane <[email protected]>
1 parent 294be34 commit 489855e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/csi/cinder/controllerserver.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,12 +1037,12 @@ func (cs *controllerServer) ControllerExpandVolume(ctx context.Context, req *csi
10371037
}
10381038

10391039
func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, ignoreVolumeAZ bool, accessibleTopologyReq *csi.TopologyRequirement) *csi.CreateVolumeResponse {
1040-
var volsrc *csi.VolumeContentSource
1040+
var volSrc *csi.VolumeContentSource
10411041

10421042
if vol.SnapshotID != "" {
10431043
volCtx[ResizeRequired] = "true"
10441044

1045-
volsrc = &csi.VolumeContentSource{
1045+
volSrc = &csi.VolumeContentSource{
10461046
Type: &csi.VolumeContentSource_Snapshot{
10471047
Snapshot: &csi.VolumeContentSource_SnapshotSource{
10481048
SnapshotId: vol.SnapshotID,
@@ -1054,7 +1054,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
10541054
if vol.SourceVolID != "" {
10551055
volCtx[ResizeRequired] = "true"
10561056

1057-
volsrc = &csi.VolumeContentSource{
1057+
volSrc = &csi.VolumeContentSource{
10581058
Type: &csi.VolumeContentSource_Volume{
10591059
Volume: &csi.VolumeContentSource_VolumeSource{
10601060
VolumeId: vol.SourceVolID,
@@ -1066,7 +1066,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
10661066
if vol.BackupID != nil && *vol.BackupID != "" {
10671067
volCtx[ResizeRequired] = "true"
10681068

1069-
volsrc = &csi.VolumeContentSource{
1069+
volSrc = &csi.VolumeContentSource{
10701070
Type: &csi.VolumeContentSource_Snapshot{
10711071
Snapshot: &csi.VolumeContentSource_SnapshotSource{
10721072
SnapshotId: *vol.BackupID,
@@ -1095,7 +1095,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
10951095
VolumeId: vol.ID,
10961096
CapacityBytes: int64(vol.Size * 1024 * 1024 * 1024),
10971097
AccessibleTopology: accessibleTopology,
1098-
ContentSource: volsrc,
1098+
ContentSource: volSrc,
10991099
VolumeContext: volCtx,
11001100
},
11011101
}

0 commit comments

Comments
 (0)