update static check failed from pkg/volume/rbd

remove field from staticcheck_failures
This commit is contained in:
haleygo
2020-06-24 15:48:00 +08:00
parent c90427d42e
commit d6cf8d3e57
5 changed files with 24 additions and 26 deletions

View File

@@ -86,8 +86,8 @@ func TestGetVolumeSpecFromGlobalMapPath(t *testing.T) {
block := v1.PersistentVolumeBlock
specMode := spec.PersistentVolume.Spec.VolumeMode
if &specMode == nil {
t.Errorf("Invalid volumeMode from GlobalMapPath spec: %v - %v", &specMode, block)
if specMode == nil {
t.Errorf("Invalid volumeMode from GlobalMapPath spec: %v - %v", specMode, block)
}
if *specMode != block {
t.Errorf("Invalid volumeMode from GlobalMapPath spec: %v - %v", *specMode, block)