Skip to content

Commit 9939059

Browse files
committed
Make code inline with the other parts
Signed-off-by: m.nabokikh <[email protected]>
1 parent a6984e0 commit 9939059

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/store/persistentvolume.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ func persistentVolumeMetricFamilies(allowAnnotationsList, allowLabelsList []stri
202202
case p.Spec.PersistentVolumeSource.CSI != nil:
203203
csiDriver = p.Spec.PersistentVolumeSource.CSI.Driver
204204
csiVolumeHandle = p.Spec.PersistentVolumeSource.CSI.VolumeHandle
205-
case p.Spec.Local != nil:
206-
localPath = p.Spec.Local.Path
207-
if p.Spec.Local.FSType != nil {
208-
localFS = *p.Spec.Local.FSType
205+
case p.Spec.PersistentVolumeSource.Local != nil:
206+
localPath = p.Spec.PersistentVolumeSource.Local.Path
207+
if p.Spec.PersistentVolumeSource.Local.FSType != nil {
208+
localFS = *p.Spec.PersistentVolumeSource.Local.FSType
209209
}
210210
}
211211

0 commit comments

Comments
 (0)