theme-check
theme-check copied to clipboard
`variable` is never used, is used
Describe the bug
Warning: variable is never used appears, but the variable is in fact used as in index for an array.
Expected Not give a warning
Actual
{%- liquid
for _ in (1..2)
assign product_num = 'product_' | append: forloop.index
render 'product-item', product: all_products[block.settings[product_num]]
endfor
-%}
Debugging information
- mcOS
- VSCode extension v1.10.0
Additional context