no need for len check anymore

This commit is contained in:
Felix Kunde 2020-12-10 15:45:29 +01:00
parent 4d18f788d2
commit 6be1b0ce43
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ func (c *Cluster) syncConnectionPoolerWorker(oldSpec, newSpec *acidv1.Postgresql
}
newAnnotations := c.AnnotationsToPropagate(c.annotationsSet(c.ConnectionPooler[role].Deployment.Annotations))
if newAnnotations != nil && len(newAnnotations) > 0 {
if newAnnotations != nil {
deployment, err = updateConnectionPoolerAnnotations(c.KubeClient, c.ConnectionPooler[role].Deployment, newAnnotations)
if err != nil {
return nil, err