Commit 1fc06a0
committed
fix: use if/else instead of or helper for array bounds rendering
The Handlebars `or` helper returns the boolean `false` when both
arguments are falsy, which renders as the literal text "false" inside
array brackets (e.g. `int arr[false]`). Replace
`{{or boundsValue boundsExpr}}` with an explicit `{{#if}}`/`{{else}}` so
that empty bounds render as `[]`.1 parent 7e73057 commit 1fc06a0
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments