From 512141a946e6545facc842ffa8ec22361f46b29d Mon Sep 17 00:00:00 2001 From: Hiranmoy Das Chowdhury Date: Fri, 17 May 2024 15:10:45 +0600 Subject: [PATCH] Signed-off-by: Hiranmoy Das Chowdhury --- pgbouncer/kubedb_client_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgbouncer/kubedb_client_builder.go b/pgbouncer/kubedb_client_builder.go index 513d39c6e..8c32023db 100644 --- a/pgbouncer/kubedb_client_builder.go +++ b/pgbouncer/kubedb_client_builder.go @@ -142,7 +142,7 @@ func (o *KubeDBClientBuilder) getBackendAuth() (string, string, error) { db := o.databaseRef - if db == nil || &db.DatabaseRef == nil { + if db == nil { return "", "", fmt.Errorf("there is no DatabaseReference found for pgBouncer %s/%s", o.pgbouncer.Namespace, o.pgbouncer.Name) } appBinding := &appbinding.AppBinding{}