From 6be1b0ce4375cac5dac73c2e31f93598b0c579de Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Thu, 10 Dec 2020 15:45:29 +0100 Subject: [PATCH] no need for len check anymore --- pkg/cluster/connection_pooler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/connection_pooler.go b/pkg/cluster/connection_pooler.go index d36aff7f1..89330d373 100644 --- a/pkg/cluster/connection_pooler.go +++ b/pkg/cluster/connection_pooler.go @@ -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