theme-check icon indicating copy to clipboard operation
theme-check copied to clipboard

`variable` is never used, is used

Open mitchuman opened this issue 2 years ago • 0 comments

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
-%}
Screen Shot 2023-06-12 at 11 58 03 AM

Debugging information

  • mcOS
  • VSCode extension v1.10.0

Additional context

mitchuman avatar Jun 12 '23 19:06 mitchuman