chore(lint): use strings.EqualFold in jobs output format check
This commit is contained in:
+1
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user