Skip to content

Commit

Permalink
Satisfy the golang compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell McConnachie committed Apr 5, 2024
1 parent 818bb30 commit ea0fdae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entx/template/event_hooks.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ea0fdae

Please sign in to comment.