Skip to content

Commit

Permalink
pacify the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolik committed Jan 30, 2025
1 parent 0ad52b7 commit a03ef99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/valkey_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ func generatePVC(valkey *hyperv1.Valkey) corev1.PersistentVolumeClaim {
pv.ObjectMeta.Labels[k] = v
}
}
if pv.Spec.AccessModes == nil || len(pv.Spec.AccessModes) == 0 {
if len(pv.Spec.AccessModes) == 0 {
pv.Spec.AccessModes = []corev1.PersistentVolumeAccessMode{
"ReadWriteOnce",
}
Expand Down

0 comments on commit a03ef99

Please sign in to comment.