Skip to content

Commit 2061924

Browse files
committed
[volume] VolumeMode nil pointer check
1 parent a7f43a7 commit 2061924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/volume/cinder/cinder_block_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestGetVolumeSpecFromGlobalMapPath(t *testing.T) {
7070
}
7171
block := v1.PersistentVolumeBlock
7272
specMode := spec.PersistentVolume.Spec.VolumeMode
73-
if &specMode == nil {
73+
if specMode == nil {
7474
t.Errorf("Invalid volumeMode from GlobalMapPath spec: %v expected: %v", &specMode, block)
7575
}
7676
if *specMode != block {

0 commit comments

Comments
 (0)