lib/theme_check/checks/unused_assign.rb in theme-check-1.10.3 vs lib/theme_check/checks/unused_assign.rb in theme-check-1.11.0

- old
+ new

@@ -37,10 +37,15 @@ @templates[node.theme_file.name].includes << "snippets/#{node.value.template_name_expr}" end end def on_variable_lookup(node) - @templates[node.theme_file.name].used_assigns << node.value.name + @templates[node.theme_file.name].used_assigns << case node.value.name + when Liquid::VariableLookup + node.value.name.name + else + node.value.name + end end def on_end @templates.each_pair do |_, info| used = info.collect_used_assigns(@templates)