From 278d488363b45334f5418d3bf4e4d4bfb63e93de Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 23 Sep 2026 18:48:07 +0200 Subject: [PATCH] chore(lint): use strings.EqualFold in jobs output format check --- pkg/jobs/jobs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/jobs/jobs.go b/pkg/jobs/jobs.go index b81dc7e..75dcba0 100644 --- a/pkg/jobs/jobs.go +++ b/pkg/jobs/jobs.go @@ -573,7 +573,7 @@ func (j *Job) validate() []string { e = append(e, "command \"templ\" does not support database output") } if j.Output != nil && j.Output.Format != "" { - if strings.ToLower(j.Output.Format) != "text" { + if !strings.EqualFold(j.Output.Format, "text") { e = append(e, "command \"templ\" accepts only output.format: text") } }