Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Chubatiuk <[email protected]>
  • Loading branch information
Andrew Chubatiuk committed Nov 15, 2023
1 parent e7bef14 commit d7703bf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions function_maps.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ var funcMaps = []template.FuncMap{
func GetNewTemplateWithFunctionMaps(cfg *v1beta1.Config) *template.Template {
tpl := template.New("manifests")

if cfg.Delims != nil {
if cfg.Delims.Left != nil && cfg.Delims.Right != nil {
tpl = tpl.Delims(*cfg.Delims.Left, *cfg.Delims.Right)
if cfg != nil {
if cfg.Delims != nil {
if cfg.Delims.Left != nil && cfg.Delims.Right != nil {
tpl = tpl.Delims(*cfg.Delims.Left, *cfg.Delims.Right)
}
}
}

Expand Down

0 comments on commit d7703bf

Please sign in to comment.