From 04a77112eb3a41c5c7ed1b700e8167ea6331d972 Mon Sep 17 00:00:00 2001 From: Baptiste ROUX Date: Thu, 16 Apr 2026 10:10:17 +0200 Subject: [PATCH] fix(test): update template condition check Signed-off-by: Baptiste ROUX --- internal/test/test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/test/test.go b/internal/test/test.go index 1a7cce735..a01ffc8cd 100644 --- a/internal/test/test.go +++ b/internal/test/test.go @@ -79,7 +79,7 @@ func compare(actual []byte, filename string, templates map[string]string) error } expected = normalize(expected) - if templates != nil && len(templates) > 0 { + if len(templates) > 0 { expected, err = templateString(expected, templates) if err != nil { return fmt.Errorf("unable to template testdata %s: %w", filename, err)