fix(test): update template condition check

Signed-off-by: Baptiste ROUX <arte.but.posix@gmail.com>
pull/32051/head
Baptiste ROUX 6 months ago
parent bebe006405
commit 04a77112eb
No known key found for this signature in database

@ -79,7 +79,7 @@ func compare(actual []byte, filename string, templates map[string]string) error
} }
expected = normalize(expected) expected = normalize(expected)
if templates != nil && len(templates) > 0 { if len(templates) > 0 {
expected, err = templateString(expected, templates) expected, err = templateString(expected, templates)
if err != nil { if err != nil {
return fmt.Errorf("unable to template testdata %s: %w", filename, err) return fmt.Errorf("unable to template testdata %s: %w", filename, err)

Loading…
Cancel
Save