Skip to content

Commit

Permalink
fix broken filterToYAML test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Kaufmann committed Feb 19, 2022
1 parent 31766da commit 7eb0c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/template/template_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func filterToYAML(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2
b := bytes.Buffer{}
yamlEncoder := yaml.NewEncoder(&b)

if param.String() != "" {
if param != nil && param.String() != "" {
pm, err := parseParamMap(param.String())
if err != nil {
return nil, &pongo2.Error{
Expand Down

0 comments on commit 7eb0c7e

Please sign in to comment.