Skip to content

Commit 54a3a55

Browse files
committed
Fix lint
1 parent 4781354 commit 54a3a55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/vmcp/composer/template_expander.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ func (e *defaultTemplateExpander) EvaluateCondition(
206206

207207
// Parse as boolean
208208
switch result {
209-
case "true", "True", "TRUE":
209+
case "true", "True", "TRUE": //nolint:goconst // Boolean literals are clearer than constants
210210
return true, nil
211-
case "false", "False", "FALSE":
211+
case "false", "False", "FALSE": //nolint:goconst // Boolean literals are clearer than constants
212212
return false, nil
213213
default:
214214
return false, fmt.Errorf("condition must evaluate to 'true' or 'false', got: %q", result)

0 commit comments

Comments
 (0)