Repository navigation
Commit 42967b7
committed
fix(chart): use fail instead of required for unconditional discovery error
Address review feedback from gemini-code-assist on
charts/cozystack/templates/_helpers.tpl:32:
The empty-discovery branch used `required "msg" ""` to fail — the
literal empty string as value makes the check unconditionally-true,
which is semantically confusing since required() is for optional-vs-
required checks. `fail "msg"` expresses the same intent in one
function call and matches the engine's existing helpers (the render
harness already registers both required and fail).
No behavior change; same error message, same trigger condition.
Assisted-By: Claude <[email protected]>
Signed-off-by: Aleksei Sviridkin <[email protected]>1 parent d7e602e commit 42967b7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments