Skip to content

Commit a88b703

Browse files
committed
test: fix gofmt
1 parent 290ef79 commit a88b703

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

pkg/nfs/controllerserver.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ func getInternalMountPath(workingMountDir string, vol *nfsVolume) string {
364364

365365
// Get internal path where the volume is created
366366
// The reason why the internal path is "workingDir/subDir/subDir" is because:
367-
// * the semantic is actually "workingDir/volId/subDir" and volId == subDir.
368-
// * we need a mount directory per volId because you can have multiple
367+
// - the semantic is actually "workingDir/volId/subDir" and volId == subDir.
368+
// - we need a mount directory per volId because you can have multiple
369369
// CreateVolume calls in parallel and they may use the same underlying share.
370370
// Instead of refcounting how many CreateVolume calls are using the same
371371
// share, it's simpler to just do a mount per request.
@@ -385,10 +385,11 @@ func getVolumeIDFromNfsVol(vol *nfsVolume) string {
385385

386386
// Given a CSI volume id, return a nfsVolume
387387
// sample volume Id:
388-
// new volumeID:
389-
// nfs-server.default.svc.cluster.local#share#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
390-
// nfs-server.default.svc.cluster.local#share#subdir#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
391-
// old volumeID: nfs-server.default.svc.cluster.local/share/pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
388+
//
389+
// new volumeID:
390+
// nfs-server.default.svc.cluster.local#share#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
391+
// nfs-server.default.svc.cluster.local#share#subdir#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
392+
// old volumeID: nfs-server.default.svc.cluster.local/share/pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
392393
func getNfsVolFromID(id string) (*nfsVolume, error) {
393394
var server, baseDir, subDir, uuid string
394395
segments := strings.Split(id, separator)

pkg/nfs/fake_mounter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (f *fakeMounter) MountSensitive(source string, target string, fstype string
4949
return nil
5050
}
5151

52-
//IsLikelyNotMountPoint overrides mount.FakeMounter.IsLikelyNotMountPoint.
52+
// IsLikelyNotMountPoint overrides mount.FakeMounter.IsLikelyNotMountPoint.
5353
func (f *fakeMounter) IsLikelyNotMountPoint(file string) (bool, error) {
5454
if strings.Contains(file, "error_is_likely") {
5555
return false, fmt.Errorf("fake IsLikelyNotMountPoint: fake error")

0 commit comments

Comments
 (0)