Skip to content

Commit 7159398

Browse files
committed
trivial: camelCase variable name
Signed-off-by: Stephen Finucane <[email protected]>
1 parent e810274 commit 7159398

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
@@ -1034,12 +1034,12 @@ func (cs *controllerServer) ControllerExpandVolume(ctx context.Context, req *csi
10341034
}
10351035

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

10391039
if vol.SnapshotID != "" {
10401040
volCtx[ResizeRequired] = "true"
10411041

1042-
volsrc = &csi.VolumeContentSource{
1042+
volSrc = &csi.VolumeContentSource{
10431043
Type: &csi.VolumeContentSource_Snapshot{
10441044
Snapshot: &csi.VolumeContentSource_SnapshotSource{
10451045
SnapshotId: vol.SnapshotID,
@@ -1051,7 +1051,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
10511051
if vol.SourceVolID != "" {
10521052
volCtx[ResizeRequired] = "true"
10531053

1054-
volsrc = &csi.VolumeContentSource{
1054+
volSrc = &csi.VolumeContentSource{
10551055
Type: &csi.VolumeContentSource_Volume{
10561056
Volume: &csi.VolumeContentSource_VolumeSource{
10571057
VolumeId: vol.SourceVolID,
@@ -1063,7 +1063,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
10631063
if vol.BackupID != nil && *vol.BackupID != "" {
10641064
volCtx[ResizeRequired] = "true"
10651065

1066-
volsrc = &csi.VolumeContentSource{
1066+
volSrc = &csi.VolumeContentSource{
10671067
Type: &csi.VolumeContentSource_Snapshot{
10681068
Snapshot: &csi.VolumeContentSource_SnapshotSource{
10691069
SnapshotId: *vol.BackupID,
@@ -1092,7 +1092,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
10921092
VolumeId: vol.ID,
10931093
CapacityBytes: int64(vol.Size * 1024 * 1024 * 1024),
10941094
AccessibleTopology: accessibleTopology,
1095-
ContentSource: volsrc,
1095+
ContentSource: volSrc,
10961096
VolumeContext: volCtx,
10971097
},
10981098
}

0 commit comments

Comments
 (0)