From ea0fdae9f01e894371a974b515277a16a81e3edc Mon Sep 17 00:00:00 2001 From: Russell McConnachie Date: Fri, 5 Apr 2024 10:58:30 -0700 Subject: [PATCH] Satisfy the golang compiler. --- entx/template/event_hooks.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entx/template/event_hooks.tmpl b/entx/template/event_hooks.tmpl index 2c9ab11b..3b2b58c0 100644 --- a/entx/template/event_hooks.tmpl +++ b/entx/template/event_hooks.tmpl @@ -163,6 +163,9 @@ return nil, fmt.Errorf("failed to load object to get values for event, err %w", err) } + // Satisfies the go error: dbObj declared and not used + if dbObj != nil { } + {{- range $f := $node.Fields }} {{- if not $f.Sensitive }} {{- $annotation := $f.Annotations.INFRA9_EVENTHOOKS }}