Skip to content

Commit 1b143be

Browse files
committed
fix len redundancy
1 parent 97db22f commit 1b143be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/k8sutil/statefulset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ func generateVolumes(stsName string, containerParams containerParameters) []core
495495
},
496496
})
497497
}
498-
if containerParams.Tls.CertSecretNames != nil && len(containerParams.Tls.CertSecretNames) > 0 {
498+
if len(containerParams.Tls.CertSecretNames) > 0 {
499499
projectionSources := []corev1.VolumeProjection{}
500500
for i, secretName := range containerParams.Tls.CertSecretNames {
501501
projectionSource := corev1.VolumeProjection{

0 commit comments

Comments
 (0)